nvim/lua/plugins/nvim-tree.lua
2023-02-12 18:26:24 +01:00

75 lines
1.9 KiB
Lua

return {
config = {
hijack_cursor = true,
sync_root_with_cwd = true,
view = {
adaptive_size = true,
},
renderer = {
full_name = true,
group_empty = true,
special_files = {},
symlink_destination = false,
indent_markers = {
enable = true,
},
icons = {
git_placement = "signcolumn",
show = {
file = true,
folder = true,
folder_arrow = true,
git = true,
},
},
},
update_focused_file = {
enable = true,
update_root = true,
ignore_list = { "help" },
},
diagnostics = {
enable = true,
show_on_dirs = true,
},
filters = {
custom = {},
dotfiles = false,
},
actions = {
change_dir = {
enable = false,
restrict_above_cwd = true,
},
open_file = {
resize_window = true,
},
remove_file = {
close_window = false,
},
},
log = {
enable = false,
truncate = true,
types = {
all = false,
config = false,
copy_paste = false,
diagnostics = false,
git = false,
profile = false,
watcher = false,
},
},
git = {
enable = true,
ignore = false,
show_on_dirs = true,
timeout = 400,
},
},
keys = {
{ "<leader>n", "<cmd>NvimTreeFocus<cr>" },
{ "<C-t>", "<cmd>NvimTreeToggle<cr>" }
}
}