2022-10-01 11:46:18 +00:00
|
|
|
vim.g.neo_tree_remove_legacy_commands = true
|
|
|
|
|
2023-04-12 18:09:30 +00:00
|
|
|
require("neo-tree").setup({
|
2023-01-28 18:53:05 +00:00
|
|
|
close_if_last_window = true,
|
2023-03-14 17:42:09 +00:00
|
|
|
auto_clean_after_session_restore = true,
|
2024-02-03 15:22:54 +00:00
|
|
|
open_files_do_not_replace_types = { "terminal", "Trouble", "trouble", "qf", "starter" },
|
2022-10-01 11:46:18 +00:00
|
|
|
popup_border_style = "rounded",
|
|
|
|
default_component_configs = {
|
|
|
|
indent = {
|
|
|
|
padding = 0,
|
|
|
|
with_expanders = false,
|
|
|
|
},
|
|
|
|
icon = {
|
|
|
|
folder_closed = "",
|
|
|
|
folder_open = "",
|
|
|
|
folder_empty = "",
|
|
|
|
default = "",
|
|
|
|
},
|
|
|
|
git_status = {
|
|
|
|
symbols = {
|
|
|
|
added = "",
|
|
|
|
deleted = "",
|
|
|
|
modified = "",
|
|
|
|
renamed = "➜",
|
|
|
|
untracked = "★",
|
|
|
|
ignored = "◌",
|
|
|
|
unstaged = "✗",
|
|
|
|
staged = "✓",
|
|
|
|
conflict = "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
window = {
|
|
|
|
width = 40,
|
|
|
|
mappings = {
|
|
|
|
["o"] = "open",
|
|
|
|
["Z"] = "expand_all_nodes",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
filesystem = {
|
|
|
|
filtered_items = {
|
|
|
|
visible = false,
|
2022-11-01 17:15:38 +00:00
|
|
|
hide_dotfiles = false,
|
2022-10-01 11:46:18 +00:00
|
|
|
hide_gitignored = false,
|
|
|
|
hide_by_name = {
|
|
|
|
"__pycache__",
|
2022-11-01 17:15:38 +00:00
|
|
|
".git",
|
2022-10-01 11:46:18 +00:00
|
|
|
},
|
|
|
|
},
|
2023-10-08 18:01:33 +00:00
|
|
|
follow_current_file = {
|
|
|
|
enabled = true,
|
|
|
|
},
|
2022-10-01 11:46:18 +00:00
|
|
|
hijack_netrw_behavior = "open_current",
|
|
|
|
use_libuv_file_watcher = true,
|
|
|
|
},
|
|
|
|
git_status = {
|
|
|
|
window = {
|
|
|
|
position = "float",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
event_handlers = {
|
|
|
|
{
|
|
|
|
event = "neo_tree_buffer_enter",
|
|
|
|
handler = function(_)
|
|
|
|
vim.opt_local.signcolumn = "auto"
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|