1
0

Change completion keymap

<CR> get in the way too often
This commit is contained in:
Patrick Auernig 2024-03-03 17:08:06 +01:00
parent 00550d0e16
commit ab4f565cb5

View File

@ -30,7 +30,7 @@ spec.config = function()
completion = cmp.config.window.bordered() completion = cmp.config.window.bordered()
}, },
mapping = { mapping = {
["<CR>"] = cmp.mapping.confirm({ select = true }), ["<C-y>"] = cmp.mapping.confirm({ select = true }),
["<C-p>"] = cmp.mapping.select_prev_item(cmp_select), ["<C-p>"] = cmp.mapping.select_prev_item(cmp_select),
["<C-n>"] = cmp.mapping.select_next_item(cmp_select), ["<C-n>"] = cmp.mapping.select_next_item(cmp_select),
["<C-Space>"] = cmp.mapping.complete(), ["<C-Space>"] = cmp.mapping.complete(),