Fix keybinding's behaviour.
This commit is contained in:
parent
e734307a44
commit
687ccad3ff
@ -2,7 +2,6 @@ local lsp = require("lsp-zero")
|
|||||||
|
|
||||||
lsp.extend_cmp()
|
lsp.extend_cmp()
|
||||||
local cmp = require('cmp')
|
local cmp = require('cmp')
|
||||||
local cmp_select = { behavior = cmp.SelectBehavior.Select }
|
|
||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
window = {
|
window = {
|
||||||
@ -10,8 +9,8 @@ cmp.setup({
|
|||||||
documentation = cmp.config.window.bordered(),
|
documentation = cmp.config.window.bordered(),
|
||||||
},
|
},
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
['<C-k>'] = cmp.mapping.select_prev_item(cmp_select),
|
['<C-k>'] = cmp.mapping.select_prev_item(),
|
||||||
['<C-j>'] = cmp.mapping.select_next_item(cmp_select),
|
['<C-j>'] = cmp.mapping.select_next_item(),
|
||||||
['<C-l>'] = cmp.mapping.confirm({ select = true }),
|
['<C-l>'] = cmp.mapping.confirm({ select = true }),
|
||||||
["<C-Space>"] = cmp.mapping.complete(),
|
["<C-Space>"] = cmp.mapping.complete(),
|
||||||
['<Tab>'] = nil,
|
['<Tab>'] = nil,
|
||||||
|
Loading…
Reference in New Issue
Block a user