Skip to content

Commit f456c2a

Browse files
authored
fix: use correct prev/next keymap (#53)
* fix: use correct prev/next keymap #23 (comment) nvim-cmp uses `ctrl-n` and `ctrl-p` by default for choosing items in a completion windows. So does vanilla Neovim and Emacs and pretty much every terminal application I know of. `ctrl-j` and `ctrl-k` are unidiomatic. * Update README.md
1 parent 6a21d7c commit f456c2a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ For LazyVim/distro users, you can disable nvim-cmp via:
9999
show = '<C-space>',
100100
hide = '<C-e>',
101101
accept = '<Tab>',
102-
select_prev = { '<Up>', '<C-k>' },
103-
select_next = { '<Down>', '<C-j>' },
102+
select_prev = { '<Up>', '<C-p>' },
103+
select_next = { '<Down>', '<C-n>' },
104104

105105
show_documentation = {},
106106
hide_documentation = {},

lua/blink/cmp/config.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ local config = {
141141
show = '<C-space>',
142142
hide = '<C-e>',
143143
accept = '<Tab>',
144-
select_prev = { '<Up>', '<C-k>' },
145-
select_next = { '<Down>', '<C-j>' },
144+
select_prev = { '<Up>', '<C-p>' },
145+
select_next = { '<Down>', '<C-n>' },
146146

147147
show_documentation = {},
148148
hide_documentation = {},

0 commit comments

Comments
 (0)