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