From ed23e2732f623725166313b42f6ca13a1d430d1a Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Wed, 8 Jul 2026 10:36:55 +0200 Subject: [PATCH] fix: snippets being annoying --- nvim/lua/plugins/lsp/completion.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nvim/lua/plugins/lsp/completion.lua b/nvim/lua/plugins/lsp/completion.lua index 20c8802..e86b64d 100644 --- a/nvim/lua/plugins/lsp/completion.lua +++ b/nvim/lua/plugins/lsp/completion.lua @@ -32,6 +32,16 @@ return { [""] = { "snippet_backward", "fallback" }, [""] = { "snippet_forward", "fallback" }, [""] = { "show_signature", "hide_signature", "fallback" }, + [""] = { + function(cmp) + if cmp.snippet_active() then + return cmp.accept() + else + return cmp.select_and_accept() + end + end, + "fallback", + }, }, appearance = {