feat: disable snippet in cmp

This commit is contained in:
Adrien Waksberg 2024-04-17 11:13:05 +02:00
parent 97a38005f4
commit 5a8ebabd8a

View file

@ -13,6 +13,23 @@ for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
capabilities = {
textDocument = {
completion = {
completionItem = {
snippetSupport = false,
},
},
},
},
}
end
local cmp = require "cmp"
local sources = cmp.get_config().sources
for i = #sources, 1, -1 do
if sources[i].name == "luasnip" then
table.remove(sources, i)
end
end
cmp.setup.buffer { sources = sources }