60 lines
1.3 KiB
Lua
60 lines
1.3 KiB
Lua
-- English comments only.
|
|
local ok, nvimtree = pcall(require, "nvim-tree")
|
|
if not ok then
|
|
return
|
|
end
|
|
|
|
nvimtree.setup({
|
|
disable_netrw = true,
|
|
hijack_netrw = true,
|
|
|
|
view = {
|
|
width = 32,
|
|
side = "left",
|
|
preserve_window_proportions = true
|
|
},
|
|
|
|
renderer = {
|
|
root_folder_label = false,
|
|
highlight_git = true,
|
|
highlight_opened_files = "name",
|
|
icons = {
|
|
show = {
|
|
file = true,
|
|
folder = true,
|
|
folder_arrow = true,
|
|
git = true
|
|
},
|
|
glyphs = {
|
|
git = {
|
|
unstaged = "✗", -- modified
|
|
staged = "✓",
|
|
untracked = "★",
|
|
renamed = "➜",
|
|
deleted = "",
|
|
ignored = "◌",
|
|
unmerged = ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
git = {
|
|
enable = true,
|
|
ignore = false,
|
|
show_on_dirs = true,
|
|
show_on_open_dirs = true
|
|
},
|
|
|
|
filters = {
|
|
dotfiles = false
|
|
},
|
|
|
|
actions = {
|
|
open_file = {
|
|
quit_on_open = false, -- keep tree open like VS Code
|
|
resize_window = true
|
|
}
|
|
}
|
|
})
|