hrsh7th / cmp-cmdline

nvim-cmp source for vim's cmdline
MIT License
566 stars 45 forks source link

Can't complete `:tag` with `tagfunc` set to `v:lua.vim.lsp.tagfunc` #51

Open diktomat opened 2 years ago

diktomat commented 2 years ago

When using the LSP for tagfunc (see :h vim.lsp.tagfunc()), cmp complains that there's no tags file when using the :tag command. As this command is fully functioning without a tags file, this should not throw errors and instead complete just fine.

image
Spo0on commented 2 years ago

I have the same issue. That happens with ts (tree sitter) command too

weilbith commented 2 years ago

Yes. It seems like no tagfunc works and the plugin goes straight for the tagfile. Does anyone know if it is possible to ignore a list of command or a regular expression to disable completion for it?

EDIT: Okay, this plugin is very slim and simply relies on the inbuilt :help getcompletion() function. 🤔