diff options
Diffstat (limited to 'lua')
-rw-r--r-- | lua/config/nvim-tree.lua | 110 |
1 files changed, 73 insertions, 37 deletions
diff --git a/lua/config/nvim-tree.lua b/lua/config/nvim-tree.lua index a1facc7..386ec49 100644 --- a/lua/config/nvim-tree.lua +++ b/lua/config/nvim-tree.lua @@ -34,24 +34,55 @@ end local tree_cb = nvim_tree_config.nvim_tree_callback nvim_tree.setup { + auto_reload_on_write = true, disable_netrw = false, - hijack_netrw = false, + hide_root_folder = false, + hijack_cursor = false, + hijack_netrw = true, + hijack_unnamed_buffer_when_opening = false, + ignore_buffer_on_setup = false, open_on_setup = false, + open_on_tab = false, + sort_by = "name", + update_cwd = false, + view = { + width = 30, + height = 30, + side = "left", + preserve_window_proportions = false, + number = false, + relativenumber = false, + signcolumn = "yes", + mappings = { + custom_only = false, + list = { + { key = { "l", "<CR>", "o" }, cb = tree_cb "edit" }, + { key = "h", cb = tree_cb "close_node" }, + { key = "v", cb = tree_cb "vsplit" }, + }, + }, + }, + hijack_directories = { + enable = true, + auto_open = true, + }, + update_focused_file = { + enable = false, + update_cwd = false, + ignore_list = {}, + }, ignore_ft_on_setup = { "startify", "dashboard", "alpha", }, - auto_close = true, - open_on_tab = false, - hijack_cursor = false, - update_cwd = true, - update_to_buf_dir = { - enable = true, - auto_open = true, + system_open = { + cmd = nil, + args = {}, }, diagnostics = { enable = true, + show_on_dirs = false, icons = { hint = "", info = "", @@ -59,42 +90,47 @@ nvim_tree.setup { error = "", }, }, - update_focused_file = { - enable = true, - update_cwd = true, - ignore_list = {}, + filters = { + dotfiles = false, + custom = {}, + exclude = {}, }, git = { enable = true, ignore = true, - timeout = 500, + timeout = 400, }, - view = { - width = 30, - height = 30, - hide_root_folder = false, - side = "left", - auto_resize = true, - mappings = { - custom_only = false, - list = { - { key = { "l", "<CR>", "o" }, cb = tree_cb "edit" }, - { key = "h", cb = tree_cb "close_node" }, - { key = "v", cb = tree_cb "vsplit" }, + actions = { + change_dir = { + enable = true, + global = 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" }, + }, }, }, - number = false, - relativenumber = false, }, - quit_on_open = 0, - git_hl = 1, - disable_window_picker = 0, - root_folder_modifier = ":t", - show_icons = { - git = 1, - folders = 1, - files = 1, - folder_arrows = 1, - tree_width = 30, + trash = { + cmd = "trash", + require_confirm = true, + }, + log = { + enable = false, + truncate = false, + types = { + all = false, + config = false, + copy_paste = false, + git = false, + profile = false, + }, }, } |