From d89c74eace5b874dce17d697f4ab1f5f6590a009 Mon Sep 17 00:00:00 2001 From: Abdennour Zahaf Date: Fri, 17 Jan 2025 18:02:22 +0100 Subject: [PATCH] feat(keymap): add Up/Down keymaps to default preset --- docs/configuration/keymap.md | 2 ++ lua/blink/cmp/config/keymap.lua | 2 ++ lua/blink/cmp/keymap/presets.lua | 2 ++ 3 files changed, 6 insertions(+) diff --git a/docs/configuration/keymap.md b/docs/configuration/keymap.md index d82c5b86..f3d241ad 100644 --- a/docs/configuration/keymap.md +++ b/docs/configuration/keymap.md @@ -86,6 +86,8 @@ Set the preset to `none` to disable the presets [''] = { 'hide' }, [''] = { 'select_and_accept' }, +[''] = { 'select_prev', 'fallback' }, +[''] = { 'select_next', 'fallback' }, [''] = { 'select_prev', 'fallback' }, [''] = { 'select_next', 'fallback' }, diff --git a/lua/blink/cmp/config/keymap.lua b/lua/blink/cmp/config/keymap.lua index 6c82fb7c..8607c750 100644 --- a/lua/blink/cmp/config/keymap.lua +++ b/lua/blink/cmp/config/keymap.lua @@ -25,6 +25,8 @@ --- [''] = { 'cancel', 'fallback' }, --- [''] = { 'select_and_accept' }, --- +--- [''] = { 'select_prev', 'fallback' }, +--- [''] = { 'select_next', 'fallback' }, --- [''] = { 'select_prev', 'fallback' }, --- [''] = { 'select_next', 'fallback' }, --- diff --git a/lua/blink/cmp/keymap/presets.lua b/lua/blink/cmp/keymap/presets.lua index 1e7de161..746a66a4 100644 --- a/lua/blink/cmp/keymap/presets.lua +++ b/lua/blink/cmp/keymap/presets.lua @@ -6,6 +6,8 @@ local presets = { [''] = { 'cancel', 'fallback' }, [''] = { 'select_and_accept' }, + [''] = { 'select_prev', 'fallback' }, + [''] = { 'select_next', 'fallback' }, [''] = { 'select_prev', 'fallback' }, [''] = { 'select_next', 'fallback' },