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

[neovim] Reorganize plugins

This commit is contained in:
2025-02-08 19:59:41 +01:00
parent 998d80ceb6
commit 2059c85c13
11 changed files with 66 additions and 49 deletions

View File

@ -135,6 +135,8 @@ 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" }))
keymap({ "n", "v" }, "<leader>o", "<cmd>Outline<CR>", vim.tbl_extend("force", opts, { desc = "Toogle Outline" }))
-- Neotest
keymap(
"n",
@ -216,20 +218,6 @@ keymap(
vim.tbl_extend("force", opts, { desc = "Open a Telescope prompt to show all commands" })
)
-- Comment
keymap(
"n",
"<leader>/",
"<cmd>lua require'Comment.api'.toggle.linewise.current()<cr>",
vim.tbl_extend("force", opts, { desc = "Comment/Uncomment code lines" })
)
keymap(
"x",
"<leader>/",
"<esc><cmd>lua require'Comment.api'.toggle.linewise(vim.fn.visualmode())<cr>",
vim.tbl_extend("force", opts, { desc = "Comment/Uncomment code lines on visual block mode" })
)
-- Gitdiff
keymap(
"n",