refactor(nvim): use C-j & C-k to scroll cmp docs

Note: this does mean that C-k binds for entering raw codes no longer works by default.
This commit is contained in:
Price Hiller 2024-10-15 16:54:13 -05:00
parent 99a1557151
commit 3656d11b13
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -240,8 +240,8 @@ return {
end,
},
mapping = {
["<C-s>"] = cmp.mapping(cmp.mapping.scroll_docs(-4), { "i", "c" }),
["<C-d>"] = cmp.mapping(cmp.mapping.scroll_docs(4), { "i", "c" }),
["<C-k>"] = cmp.mapping(cmp.mapping.scroll_docs(-4), { "i", "c" }),
["<C-j>"] = cmp.mapping(cmp.mapping.scroll_docs(4), { "i", "c" }),
["<C-Space>"] = cmp.mapping(cmp.mapping.complete(), { "i", "c" }),
["<C-y>"] = cmp.config.disable, -- Specify `cmp.config.disable` if you want to remove the default `<C-y>` mapping.
["<C-e>"] = cmp.mapping({