Skip to content

Commit

Permalink
feat(keymap)!: add Up/Down keymaps to default preset (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdennourzahaf authored Jan 17, 2025
1 parent 55eeffa commit 44a67b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/configuration/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ Set the preset to `none` to disable the presets
['<C-e>'] = { 'hide' },
['<C-y>'] = { 'select_and_accept' },

['<Up>'] = { 'select_prev', 'fallback' },
['<Down>'] = { 'select_next', 'fallback' },
['<C-p>'] = { 'select_prev', 'fallback' },
['<C-n>'] = { 'select_next', 'fallback' },

Expand Down
2 changes: 2 additions & 0 deletions lua/blink/cmp/config/keymap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
--- ['<C-e>'] = { 'cancel', 'fallback' },
--- ['<C-y>'] = { 'select_and_accept' },
---
--- ['<Up>'] = { 'select_prev', 'fallback' },
--- ['<Down>'] = { 'select_next', 'fallback' },
--- ['<C-p>'] = { 'select_prev', 'fallback' },
--- ['<C-n>'] = { 'select_next', 'fallback' },
---
Expand Down
2 changes: 2 additions & 0 deletions lua/blink/cmp/keymap/presets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ local presets = {
['<C-e>'] = { 'cancel', 'fallback' },
['<C-y>'] = { 'select_and_accept' },

['<Up>'] = { 'select_prev', 'fallback' },
['<Down>'] = { 'select_next', 'fallback' },
['<C-p>'] = { 'select_prev', 'fallback' },
['<C-n>'] = { 'select_next', 'fallback' },

Expand Down

0 comments on commit 44a67b3

Please sign in to comment.