update key bindings and display for autocompletion

This commit is contained in:
Nick Burt 2024-02-05 11:49:30 -06:00
parent 90db684e6d
commit 0309f49210
1 changed files with 5 additions and 2 deletions

View File

@ -37,8 +37,8 @@ return {
completeopt = 'menu,menuone,noinsert',
},
mapping = cmp.mapping.preset.insert {
['<C-n>'] = cmp.mapping.select_next_item(),
['<C-p>'] = cmp.mapping.select_prev_item(),
['<C-j>'] = cmp.mapping.select_next_item(),
['<C-k>'] = cmp.mapping.select_prev_item(),
['<C-u>'] = cmp.mapping.scroll_docs(-4),
['<C-d>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete {},
@ -52,6 +52,9 @@ return {
{ name = 'luasnip' },
{ name = 'path' },
},
experimental = {
ghost_text = true,
}
}
end
}