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