config.nvim/lua/plugins/nvim-tree.lua
2022-06-27 15:47:14 +08:00

25 lines
658 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,
open_on_setup = false,
ignore_ft_on_setup = {},
open_on_tab = true,
hijack_cursor = true,
hijack_directories = {enable = true, auto_open = true},
hijack_netrw = true,
update_cwd = true,
diagnostics = {
enable = true,
icons = {hint = "", info = "", warning = "", error = ""}
},
system_open = {cmd = nil, args = {}},
view = {
width = 30,
height = 30,
hide_root_folder = false,
side = 'left',
}
}