From 8fd4d900c6421c9e9b0773a99bf673925e2c66a2 Mon Sep 17 00:00:00 2001 From: Jonkimi Date: Tue, 26 Aug 2025 02:08:59 -0400 Subject: [PATCH] fix(virtual_text): Use for default completion fallback The literal tab character `\t` can be ambiguous and is not always interpreted as the Tab key in all contexts. Using `` ensures that the action correctly simulates pressing the Tab key, providing a more robust and predictable fallback for accepting completions. --- lua/codeium/virtual_text.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/codeium/virtual_text.lua b/lua/codeium/virtual_text.lua index bb96153..5b76f38 100644 --- a/lua/codeium/virtual_text.lua +++ b/lua/codeium/virtual_text.lua @@ -137,7 +137,7 @@ function M.get_completion_text() end local function completion_inserter(current_completion, insert_text) - local default = config.options.virtual_text.accept_fallback or (vim.fn.pumvisible() == 1 and "" or "\t") + local default = config.options.virtual_text.accept_fallback or (vim.fn.pumvisible() == 1 and "" or "") if not (vim.fn.mode():match("^[iR]")) then return default