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 = {