nvim-cmp: add keybind for arrow keys

This commit is contained in:
Guanran Wang 2024-02-27 02:42:26 +08:00
parent 806098a0a5
commit 3a0838448b
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -52,7 +52,9 @@ return {
end
end, { "i", "s" }),
['<CR>'] = cmp.mapping.confirm(),
["<CR>"] = cmp.mapping.confirm(),
["<Up>"] = cmp.mapping.select_prev_item({ behavior = "select" }),
["<Down>"] = cmp.mapping.select_next_item({ behavior = "select" }),
},
-- snippet engine