diff options
author | kylo252 <[email protected]> | 2021-11-29 09:12:13 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-11-29 09:12:13 +0100 |
commit | 8641c38c862d3e9818791673a9366831b81ff603 (patch) | |
tree | c6254b89ccbd1d1d56593f80ec6bf4a0deaec9d4 /lua/lvim/core/nvimtree.lua | |
parent | 3a2367b7065f617cf47278912475a517981ec248 (diff) |
fix(nvimtree): update settings (#2001)
Diffstat (limited to 'lua/lvim/core/nvimtree.lua')
-rw-r--r-- | lua/lvim/core/nvimtree.lua | 43 |
1 files changed, 36 insertions, 7 deletions
diff --git a/lua/lvim/core/nvimtree.lua b/lua/lvim/core/nvimtree.lua index 1fc93aea..7be9c421 100644 --- a/lua/lvim/core/nvimtree.lua +++ b/lua/lvim/core/nvimtree.lua @@ -6,12 +6,22 @@ function M.config() active = true, on_config_done = nil, setup = { + disable_netrw = true, + hijack_netrw = true, open_on_setup = false, - auto_close = true, - open_on_tab = false, - update_focused_file = { + ignore_ft_on_setup = { + "startify", + "dashboard", + "alpha", + }, + update_to_buf_dir = { enable = true, + auto_open = true, }, + auto_close = true, + open_on_tab = false, + hijack_cursor = false, + update_cwd = false, diagnostics = { enable = true, icons = { @@ -21,16 +31,36 @@ function M.config() error = "", }, }, + update_focused_file = { + enable = true, + update_cwd = true, + ignore_list = {}, + }, + system_open = { + cmd = nil, + args = {}, + }, + git = { + enable = true, + ignore = true, + timeout = 200, + }, view = { width = 30, + height = 30, side = "left", auto_resize = true, + number = false, + relativenumber = false, mappings = { custom_only = false, + list = {}, }, }, - hide_dotfiles = false, - ignore = { ".git", "node_modules", ".cache" }, + filters = { + dotfiles = false, + custom = { ".git", "node_modules", ".cache" }, + }, }, show_icons = { git = 1, @@ -41,9 +71,8 @@ function M.config() }, quit_on_open = 0, git_hl = 1, + disable_window_picker = 0, root_folder_modifier = ":t", - allow_resize = 1, - auto_ignore_ft = { "startify", "dashboard" }, icons = { default = "", symlink = "", |