From a6fc668de5f0b9b5e8c1cea9423a882544e2dde3 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sat, 25 May 2024 23:32:30 +0100 Subject: [PATCH] Fix weirdness in gopls completions --- lua/plugins/completions.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/plugins/completions.lua b/lua/plugins/completions.lua index 5dd9197..7db14f1 100644 --- a/lua/plugins/completions.lua +++ b/lua/plugins/completions.lua @@ -163,6 +163,9 @@ return { completion = cmp.config.window.bordered(), documentation = cmp.config.window.bordered(), }, + + -- Don't preselect any completion items, fixes wird behaviour in gopls + preselect = cmp.PreselectMode.None, }) require("cmp_git").setup({})