Prevent snippet completion popup after typing space #2437
-
Contributing guidelines
Module(s)mini.completion, mini.snippets QuestionI use mini.completion with mini.snippets and whenever I type a space the completion menu with snippets pops up. Is there a way to prevent this and to only have snippets be completed after a non-space character is typed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
This doesn't happen with most types of configuration. For example, it doesn't happen for me in Lua filetypes. The common workflow is that the completion window is automatically shown after typing keyword character or a LSP completion trigger character. My guess is that there is a configuration that adds space (i.e. |
Beta Was this translation helpful? Give feedback.
Oh, my bad. I forgot that I adjust that manually.
Of course. If you use Neovim>=0.11 and
vim.lsp.enable()approach, then it is the matter of creating an 'after/lsp/lua_ls.lua' file that returns a table with a relevanton_attachmethod. Here is an example. The similar approach is for other LSP servers by replacing thelua_lsfile name with LSP server's name (which is used invim.lsp.enable()).