Replies: 3 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.
0 replies
-
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.
0 replies
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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