Replies: 5 comments
-
Figured it out. Replace this line Line 112 in d931042 with this if e:get_kind() ~= 15 then
table.insert(entries, e)
end |
Beta Was this translation helpful? Give feedback.
-
In case you are using something like this -- file: lspconfig.lua
local capabilities = require('cmp_nvim_lsp').update_capabilities(
vim.lsp.protocol.make_client_capabilities()
) you can disable snippets like this capabilities.textDocument.completion.completionItem.snippetSupport = false |
Beta Was this translation helpful? Give feedback.
-
The above approach didn't work for me, however I found an alternative. {
name = "nvim_lsp",
},
Replaced to: {
name = "nvim_lsp",
entry_filter = function(entry, ctx)
return require("cmp").lsp.CompletionItemKind.Snippet ~= entry:get_kind()
end,
}, The issue specifically occured in jsx and tsx files. It would turn anything you type and suggest it as a snippet. Eg: |
Beta Was this translation helpful? Give feedback.
-
check this https://github.com/zjp-CN/nvim-cmp-lsp-rs or use helix |
Beta Was this translation helpful? Give feedback.
-
Same request here. Is there a non-hacky way which is usable via lazyvim's default setup/opts? This is my current config:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The snippets are cluttering my autocomplete. I understand that nvim-cmp only works with a snippet engine.
For me however, that's a dealbreaker. Could someone point me in the direction of what I need to do to remove them? I've already Ctrl+F removed all references to snippets in the the source code.
How do I avoid them being listed in the popup? Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions