However, no entries are being completed unless I directly invoke <C-x><C-o>. On the other hand, when I set lsp: {enable: false, …} in the options, the omnifunc completions springs to life automatically as I would expect. No LSP for Python then, though. 🙁
I'm trying to use omnifunc for filetypes where a LSP is not available or not suitable for me. Minimal example:
When editing
*.tex
file, the omnifunc completor is reported as enabled:However, no entries are being completed unless I directly invoke
<C-x><C-o>
. On the other hand, when I setlsp: {enable: false, …}
in the options, the omnifunc completions springs to life automatically as I would expect. No LSP for Python then, though. 🙁I suspect the following line is the culprit: https://github.com/girishji/vimcomplete/blob/4c80d44b8776c125a55cd506b6e5a4478c3d0d7d/autoload/vimcomplete/omnifunc.vim#L14
This should probably check if LSP is enabled for the current buffer, not globally (if I'm reading that correctly).