update completion
This commit is contained in:
@@ -10,6 +10,7 @@ return {
|
||||
|
||||
opts = {
|
||||
snippets = {
|
||||
preset = 'luasnip',
|
||||
expand = function(snippet) require('luasnip').lsp_expand(snippet) end,
|
||||
active = function(filter)
|
||||
if filter and filter.direction then
|
||||
@@ -20,7 +21,7 @@ return {
|
||||
jump = function(direction) require('luasnip').jump(direction) end,
|
||||
},
|
||||
|
||||
completion = { list = { selection = "auto_insert" } },
|
||||
completion = { list = { selection = { preselect = false, auto_insert = true } } },
|
||||
keymap = {
|
||||
preset = 'enter',
|
||||
['<Tab>'] = { 'select_next', 'snippet_forward', 'fallback' },
|
||||
@@ -32,9 +33,12 @@ return {
|
||||
nerd_font_variant = 'mono'
|
||||
},
|
||||
|
||||
cmdline = {
|
||||
sources = {},
|
||||
},
|
||||
|
||||
sources = {
|
||||
default = { 'lsp', 'luasnip', 'path', 'buffer' },
|
||||
cmdline = {},
|
||||
default = { 'lsp', 'snippets', 'path', 'buffer' },
|
||||
},
|
||||
|
||||
signature = { enabled = true }
|
||||
|
||||
Reference in New Issue
Block a user