mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-03 01:59:26 +00:00
[neovim] Reorganize plugins
This commit is contained in:
@ -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",
|
||||
|
@ -87,11 +87,13 @@ require("lazy").setup({
|
||||
|
||||
-- Plugins
|
||||
{ "nvim-lua/plenary.nvim", lazy = true },
|
||||
{ "echasnovski/mini.animate", event = "VeryLazy", version = "*" },
|
||||
{ "echasnovski/mini.comment", event = "VeryLazy", version = "*" },
|
||||
{ "echasnovski/mini.pairs", event = "VeryLazy", version = "*" },
|
||||
{ "echasnovski/mini.starter", lazy = "VimEnter", version = "*" },
|
||||
{ "echasnovski/mini.animate", version = "*" },
|
||||
{ "windwp/nvim-autopairs" },
|
||||
{ "numToStr/Comment.nvim" },
|
||||
{ "JoosepAlviste/nvim-ts-context-commentstring" },
|
||||
{ "JoosepAlviste/nvim-ts-context-commentstring", lazy = true, opts = {
|
||||
enable_autocmd = false,
|
||||
} },
|
||||
{ "nvim-tree/nvim-web-devicons", lazy = true },
|
||||
{ "akinsho/bufferline.nvim", event = "VeryLazy", version = "v4.*" },
|
||||
{ "moll/vim-bbye" },
|
||||
@ -161,6 +163,7 @@ require("lazy").setup({
|
||||
event = { "BufWritePre" },
|
||||
cmd = { "ConformInfo" },
|
||||
},
|
||||
{ "hedyhli/outline.nvim", opts = {} },
|
||||
|
||||
-- Telescope
|
||||
{ "nvim-telescope/telescope.nvim", cmd = "Telescope" },
|
||||
|
Reference in New Issue
Block a user