Adding a couple keymaps to interface with the AI overlords
This commit is contained in:
parent
cd709ec0f4
commit
44b6da6df3
@ -31,6 +31,8 @@ require("codecompanion").setup({
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
vim.api.nvim_set_keymap("v", "<leader>ce", "", {
|
||||
callback = function()
|
||||
require("codecompanion").prompt("explain")
|
||||
@ -38,3 +40,11 @@ vim.api.nvim_set_keymap("v", "<leader>ce", "", {
|
||||
noremap = true,
|
||||
silent = true,
|
||||
})
|
||||
|
||||
|
||||
vim.api.nvim_set_keymap("n", "<C-a>", "<cmd>CodeCompanionActions<cr>", { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap("v", "<C-a>", "<cmd>CodeCompanionActions<cr>", { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap("n", "<leader>tc", "<cmd>CodeCompanionChat Toggle<cr>", { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap("v", "<leader>tc", "<cmd>CodeCompanionChat Toggle<cr>", { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap("v", "ga", ":CodeCompanionChat Add<cr>", { noremap = true, silent = true })
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user