From 687ccad3ffe6d0cfdaf8679eed76206f424b4970 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Sun, 24 Dec 2023 14:33:51 +0100 Subject: [PATCH] Fix keybinding's behaviour. --- after/plugin/lsp.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 73ee88c..4e82771 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -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({ - [''] = cmp.mapping.select_prev_item(cmp_select), - [''] = cmp.mapping.select_next_item(cmp_select), + [''] = cmp.mapping.select_prev_item(), + [''] = cmp.mapping.select_next_item(), [''] = cmp.mapping.confirm({ select = true }), [""] = cmp.mapping.complete(), [''] = nil,