diff --git a/.config/nvim/lua/core/keymaps.lua b/.config/nvim/lua/core/keymaps.lua index e793171..0ee0c2c 100644 --- a/.config/nvim/lua/core/keymaps.lua +++ b/.config/nvim/lua/core/keymaps.lua @@ -239,7 +239,9 @@ local code_companion_mappings = { { mode = "n", key = "Ci", - cmd = ":CodeCompanion #{buffer} ", + cmd = function() + vim.api.nvim_feedkeys(":CodeCompanion #{buffer} ", "n", false) + end, group = "Inline CodeCompanion", opts = nosilent, }, @@ -249,7 +251,9 @@ local code_companion_mappings = { { mode = "v", key = "Ci", - cmd = ":CodeCompanion #{buffer} ", + cmd = function() + vim.api.nvim_feedkeys(":CodeCompanion #{buffer} ", "n", false) + end, group = "CodeCompanion Inline", opts = nosilent, },