Files
nvim/lua/plugins/neo-tree.lua
2026-03-29 20:12:58 +01:00

56 lines
1.4 KiB
Lua

return {
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
"nvim-tree/nvim-web-devicons",
},
lazy = false,
opts = {
close_if_last_window = true,
popup_border_style = "rounded",
enable_git_status = true,
-- Global window options
window = {
position = "left",
width = 35,
mappings = {
["o"] = "open",
["P"] = "toggle_preview",
["s"] = "open_split",
["v"] = "open_vsplit",
},
},
filesystem = {
follow_current_file = { enabled = true },
enable_fs_watch = true, -- v3 style watcher flag
-- All filtering options belong here
filtered_items = {
-- Set visible=true if you want hidden items to show but dimmed
visible = true,
hide_dotfiles = false,
hide_gitignored = false,
-- Optional: never hide these even if other filters apply
always_show = {},
-- Optional: keep these hidden regardless of visible=true
never_show = { ".git" },
-- Optional: add names/patterns to hide by default
hide_by_name = {},
hide_by_pattern = {},
},
-- Optional per-source window mappings section (inherits from root window)
-- window = {
-- mappings = {
-- ["/"] = "fuzzy_finder",
-- },
-- },
},
},
}