chore: disable snippet in cmp

This commit is contained in:
Stefan Imhoff
2022-01-21 16:59:25 +01:00
parent 02fe7f0d2f
commit 4574c8e1e7

View File

@@ -6,11 +6,11 @@ if (not status) then return end
cmp.setup({ cmp.setup({
auto_select = false, auto_select = false,
snippet = { -- snippet = {
expand = function(args) -- expand = function(args)
vim.fn["UltiSnips#Anon"](args.body) -- vim.fn["UltiSnips#Anon"](args.body)
end -- end
}, -- },
mapping = { mapping = {
['<C-b>'] = cmp.mapping.scroll_docs(-4), ['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4), ['<C-f>'] = cmp.mapping.scroll_docs(4),
@@ -29,7 +29,7 @@ cmp.setup({
sources = { sources = {
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },
{ name = 'path' }, { name = 'path' },
{ name = 'ultisnips' }, -- { name = 'ultisnips' },
{ name = 'buffer', keyword_length = 5 }, { name = 'buffer', keyword_length = 5 },
{ name = 'npm', keyword_length = 4 }, { name = 'npm', keyword_length = 4 },
}, },