cmp - fix snippets

This commit is contained in:
Ray Elliott 2021-09-19 13:28:34 +01:00
parent b3e1ce732b
commit 33fd21d06f
1 changed files with 6 additions and 6 deletions

View File

@ -162,14 +162,14 @@ end
local cmp = require'cmp'
cmp.setup({
completion = {
keyword_length = 4
keyword_length = 4,
-- autocomplete = false
},
snippet = {
expand = function(args)
vim.fn["vsnip#anonymous"](args.body)
end,
},
-- snippet = {
-- expand = function(args)
-- vim.fn["vsnip#anonymous"](args.body)
-- end,
-- },
mapping = {
['<C-n>'] = cmp.mapping.complete(),
['<C-y>'] = cmp.mapping.confirm({ select = true }),