1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-03 08:59:24 +00:00

[neovim] Minimal refactor

This commit is contained in:
2024-02-16 16:37:22 +01:00
parent d1c002183f
commit 5d6b68c0bd
9 changed files with 70 additions and 44 deletions

View File

@ -153,18 +153,12 @@ keymap(
)
-- Copilot
keymap(
"n",
"<leader>coe",
"<cmd>CopilotChatExplain<cr>",
vim.tbl_extend("force", opts, { desc = "CopilotChat - Explain code" })
)
keymap(
"n",
"<leader>cot",
"<cmd>CopilotChatTests<cr>",
vim.tbl_extend("force", opts, { desc = "CopilotChat - Generate tests" })
)
keymap("n", "<leader>coa", function()
require("CopilotChat.code_actions").show_help_actions()
end, vim.tbl_extend("force", opts, { desc = "CopilotChat - Help actions" }))
keymap("n", "<leader>cop", function()
require("CopilotChat.code_actions").show_prompt_actions()
end, vim.tbl_extend("force", opts, { desc = "CopilotChat - Prompt actions" }))
-- Better paste
keymap("v", "p", "P", vim.tbl_extend("force", opts, { desc = "Paste" }))