summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorSkladnayazebra <skladnayazebra@gmail.com>2025-10-25 13:47:58 +0200
committerSkladnayazebra <skladnayazebra@gmail.com>2025-10-25 13:47:58 +0200
commit00a57bd7f78fbf1770834fe73e2d9925989a3a4c (patch)
treea0415284e88581b4df98a0d9f9ebac06578da9aa /nvim
parent5d25789212b2c501a1f7e4b39a9195caa7cdfa4d (diff)
improve blink-cmp navigation
Diffstat (limited to 'nvim')
-rw-r--r--nvim/lua/config/blink-cmp.lua10
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' },