From 44691c8aa57eb472e9f14e0b35ace10e020b9541 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Wed, 10 Aug 2022 00:33:47 +0200 Subject: [PATCH] Don't select the first completion, it breaks some usage --- roles/neovim/files/lua/plugins/options/completion.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/neovim/files/lua/plugins/options/completion.lua b/roles/neovim/files/lua/plugins/options/completion.lua index ed677e9..45f464f 100644 --- a/roles/neovim/files/lua/plugins/options/completion.lua +++ b/roles/neovim/files/lua/plugins/options/completion.lua @@ -20,11 +20,11 @@ cmp.setup({ [''] = cmp.mapping.abort(), [''] = cmp.mapping.select_next_item(), [''] = cmp.mapping.select_prev_item(), - [''] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. + [''] = cmp.mapping.confirm({ select = false }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. }), sources = cmp.config.sources({ { name = 'nvim_lsp' }, - { name = 'luasnip' }, -- For luasnip users. + { name = 'luasnip' }, }, { { name = 'buffer' }, })