Neovim/lua/plugins/neo-tree.lua

79 lines
2.2 KiB
Lua
Raw Normal View History

2024-11-07 19:14:19 +00:00
--
-- Pretty file tree with various sources
--
-- Source: https://github.com/nvim-neo-tree/neo-tree.nvim
-- ..............................................
--
-- Author: Sven Vogel
-- Created: 01.11.2024
-- Edited: 07.11.2024
--
-- ==============================================
2024-11-07 19:14:19 +00:00
ui = require 'config.ui'
2024-10-31 10:06:01 +00:00
return {
"nvim-neo-tree/neo-tree.nvim",
2024-11-01 15:48:53 +00:00
lazy = false,
2024-10-31 10:06:01 +00:00
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim"
},
cmd = "Neotree",
opts = {
2024-11-07 19:14:19 +00:00
popup_border_style = ui.border,
source_selector = {
winbar = true,
statusline = false,
sources = {
{
source = "filesystem",
display_name = " 󰉓 Files "
},
{
source = "buffers",
display_name = " 󰈚 Buffers "
},
{
source = "document_symbols",
display_name = " 󰊢 Git "
},
},
},
2024-10-31 10:06:01 +00:00
filesystem = {
bind_to_cwd = false,
follow_current_file = { enabled = true },
use_libuv_file_watcher = true,
hijack_netrw_behavior = "open_default",
filtered_items = {
hide_dotfiles = false,
hide_gitignored = false,
hide_hidden = false, -- only works on Windows for hidden files/directories
2024-11-01 15:48:53 +00:00
},
window = {
position = "left"
2024-10-31 10:06:01 +00:00
}
},
close_if_last_window = false,
default_component_configs = {
container = {
enable_character_fade = true
},
indent = {
indent_size = 2,
padding = 1, -- extra padding on left hand side
with_markers = true,
indent_marker = "",
last_indent_marker = "",
with_expanders = true, -- if nil and file nesting is enabled, will enable expanders
expander_collapsed = "",
expander_expanded = "",
expander_highlight = "NeoTreeExpander",
}
}
}
}