This commit is contained in:
newbie 2023-12-18 23:04:33 +08:00
parent ff8d4684aa
commit d7f0011c35

View File

@ -208,6 +208,10 @@ return {
view = { view = {
entries = { name = 'wildmenu', separator = '|' } entries = { name = 'wildmenu', separator = '|' }
}, },
sources = cmp.config.sources({
{ name = 'path' },
{ name = 'cmdline' },
}),
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
['<CR>'] = cmp.mapping.confirm({ select = true }), ['<CR>'] = cmp.mapping.confirm({ select = true }),
["<c-n>"] = cmp.mapping(function(fallback) ["<c-n>"] = cmp.mapping(function(fallback)