From 00a57bd7f78fbf1770834fe73e2d9925989a3a4c Mon Sep 17 00:00:00 2001 From: Skladnayazebra Date: Sat, 25 Oct 2025 13:47:58 +0200 Subject: improve blink-cmp navigation --- nvim/lua/config/blink-cmp.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'nvim/lua/config') 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', + -- - to navigate, to accept + [''] = { 'select_next', 'fallback' }, + [''] = { 'select_prev', 'fallback' }, + [''] = { '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' }, -- cgit v1.3.1