vim: add 'luasnip' to confirm autocompletion
This commit is contained in:
parent
1f09fa5092
commit
05358d4989
1 changed files with 6 additions and 3 deletions
|
@ -53,8 +53,8 @@ local config = function()
|
||||||
mapping = keymap,
|
mapping = keymap,
|
||||||
|
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(_ --[[args]])
|
expand = function(args)
|
||||||
-- require('luasnip').lsp_expand(args.body) TODO enable
|
require('luasnip').lsp_expand(args.body)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ local config = function()
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = 'nvim_lua' },
|
{ name = 'nvim_lua' },
|
||||||
{ name = 'nvim_lsp' },
|
{ name = 'nvim_lsp' },
|
||||||
-- { name = "luasnip" }, TODO enable
|
{ name = 'luasnip' },
|
||||||
}, {
|
}, {
|
||||||
{ name = 'path' },
|
{ name = 'path' },
|
||||||
{ name = 'buffer', keyword_length = 5 },
|
{ name = 'buffer', keyword_length = 5 },
|
||||||
|
@ -145,6 +145,9 @@ return {
|
||||||
'hrsh7th/cmp-buffer',
|
'hrsh7th/cmp-buffer',
|
||||||
'hrsh7th/cmp-cmdline',
|
'hrsh7th/cmp-cmdline',
|
||||||
'onsails/lspkind-nvim',
|
'onsails/lspkind-nvim',
|
||||||
|
|
||||||
|
'L3MON4D3/LuaSnip',
|
||||||
|
'saadparwaiz1/cmp_luasnip',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue