diff --git a/after/plugin/llm.lua b/after/plugin/llm.lua index c7cb2e2..e025857 100644 --- a/after/plugin/llm.lua +++ b/after/plugin/llm.lua @@ -31,6 +31,8 @@ require("codecompanion").setup({ } }) + + vim.api.nvim_set_keymap("v", "ce", "", { callback = function() require("codecompanion").prompt("explain") @@ -38,3 +40,11 @@ vim.api.nvim_set_keymap("v", "ce", "", { noremap = true, silent = true, }) + + +vim.api.nvim_set_keymap("n", "", "CodeCompanionActions", { noremap = true, silent = true }) +vim.api.nvim_set_keymap("v", "", "CodeCompanionActions", { noremap = true, silent = true }) +vim.api.nvim_set_keymap("n", "tc", "CodeCompanionChat Toggle", { noremap = true, silent = true }) +vim.api.nvim_set_keymap("v", "tc", "CodeCompanionChat Toggle", { noremap = true, silent = true }) +vim.api.nvim_set_keymap("v", "ga", ":CodeCompanionChat Add", { noremap = true, silent = true }) +