2022-10-21 06:15:28 -04:00
|
|
|
local ok,nvim_tree = pcall(require,"nvim-tree")
|
|
|
|
if not ok then
|
|
|
|
vim.notify("Failed to load nvim-tree\n\n")
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
nvim_tree.setup {
|
|
|
|
auto_reload_on_write = true,
|
|
|
|
disable_netrw = false,
|
|
|
|
hijack_cursor = false,
|
|
|
|
hijack_netrw = true,
|
|
|
|
hijack_unnamed_buffer_when_opening = false,
|
|
|
|
ignore_buffer_on_setup = false,
|
|
|
|
open_on_setup = false,
|
|
|
|
open_on_setup_file = false,
|
|
|
|
open_on_tab = false,
|
|
|
|
sort_by = "name",
|
|
|
|
update_cwd = false,
|
|
|
|
|
|
|
|
view = {
|
|
|
|
width = 30,
|
2022-12-06 11:54:08 -05:00
|
|
|
-- height = 30,
|
2022-10-21 06:15:28 -04:00
|
|
|
hide_root_folder = false,
|
|
|
|
side = "left",
|
|
|
|
preserve_window_proportions = false,
|
|
|
|
number = false,
|
|
|
|
relativenumber = false,
|
|
|
|
signcolumn = "yes",
|
|
|
|
mappings = {
|
|
|
|
custom_only = false,
|
|
|
|
list = {},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
renderer = {
|
|
|
|
indent_markers = {
|
|
|
|
enable = false,
|
|
|
|
icons = {
|
|
|
|
corner = "└ ",
|
|
|
|
edge = "│ ",
|
|
|
|
none = " ",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
icons = {
|
|
|
|
webdev_colors = true,
|
|
|
|
git_placement = "before",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
hijack_directories = {
|
|
|
|
enable = true,
|
|
|
|
auto_open = true,
|
|
|
|
},
|
|
|
|
|
|
|
|
update_focused_file = {
|
|
|
|
enable = false,
|
|
|
|
update_cwd = false,
|
|
|
|
ignore_list = {},
|
|
|
|
},
|
|
|
|
|
|
|
|
ignore_ft_on_setup = {},
|
|
|
|
system_open = {
|
|
|
|
cmd = "",
|
|
|
|
args = {},
|
|
|
|
},
|
|
|
|
|
|
|
|
diagnostics = {
|
|
|
|
enable = false,
|
|
|
|
show_on_dirs = false,
|
|
|
|
icons = {
|
|
|
|
hint = "",
|
|
|
|
info = "",
|
|
|
|
warning = "",
|
|
|
|
error = "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
filters = {
|
|
|
|
dotfiles = true,
|
|
|
|
custom = {},
|
|
|
|
exclude = {},
|
|
|
|
},
|
|
|
|
|
|
|
|
git = {
|
|
|
|
enable = true,
|
|
|
|
ignore = true,
|
|
|
|
timeout = 400,
|
|
|
|
},
|
|
|
|
|
|
|
|
actions = {
|
|
|
|
use_system_clipboard = true,
|
|
|
|
change_dir = {
|
|
|
|
enable = true,
|
|
|
|
global = false,
|
|
|
|
restrict_above_cwd = false,
|
|
|
|
},
|
|
|
|
open_file = {
|
|
|
|
quit_on_open = false,
|
|
|
|
resize_window = false,
|
|
|
|
window_picker = {
|
|
|
|
enable = true,
|
|
|
|
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
|
|
|
|
exclude = {
|
|
|
|
filetype = { "notify", "packer", "qf", "diff", "fugitive", "fugitiveblame" },
|
|
|
|
buftype = { "nofile", "terminal", "help" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
trash = {
|
|
|
|
cmd = "trash",
|
|
|
|
require_confirm = true,
|
|
|
|
},
|
|
|
|
|
|
|
|
log = {
|
|
|
|
enable = false,
|
|
|
|
truncate = false,
|
|
|
|
types = {
|
|
|
|
all = false,
|
|
|
|
config = false,
|
|
|
|
copy_paste = false,
|
|
|
|
diagnostics = false,
|
|
|
|
git = false,
|
|
|
|
profile = false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|