1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-02 06:19: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

@ -0,0 +1,42 @@
require("snacks").setup({
animate = {},
bigfile = {},
explorer = {},
indent = {
indent = { char = "" },
scope = { char = "" },
},
scroll = {},
gitbrowse = {},
image = {},
dashboard = {
sections = {
{ section = "header" },
{ icon = "", desc = "Projects", action = ":Telescope neovim-project", key = "p", padding = 1 },
{ icon = "", key = "n", desc = "New File", action = ":ene | startinsert" },
{
icon = "",
desc = "Recent Files",
action = ":lua Snacks.dashboard.pick('oldfiles')",
key = "r",
},
{ icon = "", key = "q", desc = "Quit", action = ":qa", padding = 1 },
{ icon = "", title = "Config" },
{
icon = "󰒲",
desc = "Lazy",
action = ":Lazy",
enabled = package.loaded.lazy ~= nil,
key = "l",
indent = 2,
},
{ icon = "", desc = "Mason", action = ":Mason", key = "m", indent = 2 },
{ icon = "", desc = "Tree-sitter", action = ":TSUpdate", key = "t", indent = 2, padding = 2 },
{ section = "startup" },
},
},
})