2026 nvim config
This commit is contained in:
55
lua/plugins/neo-tree.lua
Normal file
55
lua/plugins/neo-tree.lua
Normal file
@@ -0,0 +1,55 @@
|
||||
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",
|
||||
-- },
|
||||
-- },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user