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

[neovim] replace neo-tree with snacks.nvim

Replace neo-tree.nvim with snacks.nvim for file explorer functionality and
remove several other plugins including:
- mini-animate
- mini-starter
- indent-blankline

The snacks.nvim plugin provides better file explorer, dashboard, indentation
guides, and other UI improvements in a more cohesive package.

Also removed the large file autocommand as snacks.nvim handles this with its
bigfile module.
This commit is contained in:
2025-03-29 18:26:13 +01:00
parent 8e93236e49
commit 7d01253a29
15 changed files with 71 additions and 249 deletions

View File

@ -193,14 +193,10 @@ keymap("i", "jk", "<ESC>", vim.tbl_extend("force", opts, { desc = "Exit insert m
keymap("v", "<", "<gv", opts)
keymap("v", ">", ">gv", opts)
-- NeoTree
keymap("n", "<leader>e", ":Neotree toggle<cr>", vim.tbl_extend("force", opts, { desc = "Toggle Neotree" }))
keymap(
"n",
"<leader>gg",
":Neotree float git_status<cr>",
vim.tbl_extend("force", opts, { desc = "Open a float window with the git status" })
)
-- FileTree
keymap("n", "<leader>e", function()
Snacks.explorer()
end, vim.tbl_extend("force", opts, { desc = "Toggle file explorer" }))
-- Telescope
keymap(
@ -234,7 +230,7 @@ keymap(
vim.tbl_extend("force", opts, { desc = "Open a Telescope prompt to show all commands" })
)
-- Gitdiff
-- Git
keymap(
"n",
"<leader>df",
@ -242,6 +238,13 @@ keymap(
vim.tbl_extend("force", opts, { desc = "Open diff view file history for the current buffer" })
)
keymap("n", "<leader>dc", ":DiffviewClose<cr>", vim.tbl_extend("force", opts, { desc = "Close diff view" }))
-- Git
keymap({ "n", "v" }, "<leader>go", function()
Snacks.gitbrowse()
end, vim.tbl_extend("force", opts, { desc = "Git Browse" }))
keymap("n", "<leader>gg", function()
Snacks.picker.git_status()
end, vim.tbl_extend("force", opts, { desc = "Git Status" }))
-- Projects
keymap(