2023-05-08 17:03:45 +02:00
|
|
|
local hastree, tree = pcall(require, "nvim-tree")
|
|
|
|
if not hastree then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2023-05-22 13:32:07 +02:00
|
|
|
tree.setup({
|
2023-05-08 17:03:45 +02:00
|
|
|
sort_by = "case_sensitive",
|
|
|
|
sync_root_with_cwd = true,
|
|
|
|
update_focused_file = {
|
|
|
|
update_root = true,
|
|
|
|
},
|
|
|
|
view = {
|
|
|
|
adaptive_size = true,
|
|
|
|
mappings = {
|
|
|
|
list = {
|
2023-08-28 16:30:22 +02:00
|
|
|
{key = "cd", action = "cd"},
|
|
|
|
{key = "<backspace>", action = "close"},
|
2023-05-08 17:03:45 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
renderer = {
|
|
|
|
group_empty = true,
|
|
|
|
},
|
|
|
|
filters = {
|
|
|
|
dotfiles = true,
|
|
|
|
},
|
|
|
|
})
|