Fix keybinding's behaviour.

This commit is contained in:
CronyAkatsuki 2023-12-24 14:33:51 +01:00
parent e734307a44
commit 687ccad3ff

View File

@ -2,7 +2,6 @@ local lsp = require("lsp-zero")
lsp.extend_cmp()
local cmp = require('cmp')
local cmp_select = { behavior = cmp.SelectBehavior.Select }
cmp.setup({
window = {
@ -10,8 +9,8 @@ cmp.setup({
documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
['<C-k>'] = cmp.mapping.select_prev_item(cmp_select),
['<C-j>'] = cmp.mapping.select_next_item(cmp_select),
['<C-k>'] = cmp.mapping.select_prev_item(),
['<C-j>'] = cmp.mapping.select_next_item(),
['<C-l>'] = cmp.mapping.confirm({ select = true }),
["<C-Space>"] = cmp.mapping.complete(),
['<Tab>'] = nil,