Check the local value of completion-at-point-functions. I suspect evil mode loads ispell for you.
The first function in completion-at-point-functions to return a non-nil value is used by completion-at-point . The remaining functions are not called. The exception to this is when there is an :exclusive specification, as described above.
(pcomplete-completions-at-point t ispell-completion-at-point)
Local in buffer algebra.org; global value is
(tags-completion-at-point-function)
So there is indeed ispell.
I also noticed that when I create a fresh new org file inside org-roam-directory, completion works as expected, even with evil enabled.
When I edit an exiting org file inside org-roam-directory, even though this old file is completely empty, no completion-at-point.
I have also tried deleting the org-roam db file and re-building it, no effects.
Should I manually insert org-roam-complete-everywhere to completion-at-point-functions? What’s the proper way of doing it? I’ve tried:
I suggest you try this and see if completion-at-point works.
Create 1 or 2 nodes. Ensure org-roam-node-find lists them.
Exit Emacs, and re-launch it.
Visit an org file inside org-roam-directly by using org-roam-node-find. It can be via M-x or your keybinding (do not use the normal find-file. According to your configuration, find-file won’t load org-roam – I hope you are conscious about this choice).
While inside the org file, check the value of completion-at-point-functions again
At point 4, you should see org-roam-complete-everywhere org-roam-complete-link-at-point in the beginning of the value.
If this is not the case, I suspect your configuration is not good.
Ensure:
The correct value in the completion-at-point-functions as above,
I see. So I need to somewhere “activate” org-roam for the completion to be “registered”, e.g. by using org-roam-node-find first.
Could I force an “activate” of org-roam, rather than letting it lazily load?