cmp - fix snippets
This commit is contained in:
parent
b3e1ce732b
commit
33fd21d06f
|
@ -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 }),
|
||||
|
|
Loading…
Reference in New Issue