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

[neovim] Refactor

This commit is contained in:
2025-02-21 16:24:32 +01:00
parent b8fcf02379
commit 8d7675acf4
8 changed files with 67 additions and 38 deletions

View File

@ -131,6 +131,12 @@ keymap(
"<cmd>Lspsaga peek_definition<cr>",
vim.tbl_extend("force", opts, { desc = "Peek the definition of the directive under the cursor" })
)
keymap(
"n",
"<leader>lt",
"<cmd>Lspsaga peek_type_definition<cr>",
vim.tbl_extend("force", opts, { desc = "Peek the type definition of the directive under the cursor" })
)
keymap({ "n", "v" }, "<leader>lf", function()
require("conform").format({ async = true, lsp_fallback = true })
end, vim.tbl_extend("force", opts, { desc = "Format the current buffer or selection" }))
@ -152,10 +158,6 @@ keymap(
)
-- Copilot
keymap({ "n", "v" }, "<leader>coh", function()
local actions = require("CopilotChat.actions")
require("CopilotChat.integrations.telescope").pick(actions.help_actions())
end, vim.tbl_extend("force", opts, { desc = "CopilotChat - Help actions" }))
keymap({ "n", "v" }, "<leader>cop", function()
local actions = require("CopilotChat.actions")
require("CopilotChat.integrations.telescope").pick(actions.prompt_actions())