diff options
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/lua/config/blink-cmp.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nvim/lua/config/blink-cmp.lua b/nvim/lua/config/blink-cmp.lua index cca782c..bdda057 100644 --- a/nvim/lua/config/blink-cmp.lua +++ b/nvim/lua/config/blink-cmp.lua @@ -7,13 +7,19 @@ return { ---@module 'blink.cmp' ---@type blink.cmp.Config opts = { - keymap = { preset = 'default' }, + keymap = { + preset = 'default', + -- <up>-<down> to navigate, <right> to accept + ['<C-j>'] = { 'select_next', 'fallback' }, + ['<C-k>'] = { 'select_prev', 'fallback' }, + ['<C-l>'] = { 'select_and_accept', 'fallback' }, + }, appearance = { nerd_font_variant = 'mono' }, - completion = { documentation = { auto_show = false } }, + completion = { documentation = { auto_show = true } }, sources = { default = { 'lsp', 'path', 'snippets', 'buffer' }, |
