config.nvim/lua/plugins/nvim-tree.lua
2021-11-13 15:29:17 +08:00

30 lines
893 B
Lua

-- following options are the default
-- each of these are documented in `:help nvim-tree.OPTION_NAME`
require'nvim-tree'.setup {
disable_netrw = true,
hijack_netrw = true,
open_on_setup = false,
ignore_ft_on_setup = {},
auto_close = false,
open_on_tab = false,
hijack_cursor = true,
update_cwd = false,
update_to_buf_dir = {enable = true, auto_open = true},
diagnostics = {
enable = true,
icons = {hint = "", info = "", warning = "", error = ""}
},
update_focused_file = {enable = false, update_cwd = false, ignore_list = {}},
system_open = {cmd = nil, args = {}},
filters = {dotfiles = false, custom = {}},
view = {
width = 30,
height = 30,
hide_root_folder = false,
side = 'left',
auto_resize = false,
mappings = {custom_only = false, list = {}}
}
}