feat: disable snippet in cmp
This commit is contained in:
parent
97a38005f4
commit
5a8ebabd8a
1 changed files with 18 additions and 1 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue