|
@@ -6,13 +6,13 @@ function M.config()
|
|
active = true,
|
|
active = true,
|
|
on_config_done = nil,
|
|
on_config_done = nil,
|
|
setup = {
|
|
setup = {
|
|
- open_on_setup = 0,
|
|
|
|
- auto_close = 1,
|
|
|
|
- open_on_tab = 0,
|
|
|
|
|
|
+ open_on_setup = false,
|
|
|
|
+ auto_close = true,
|
|
|
|
+ open_on_tab = false,
|
|
update_focused_file = {
|
|
update_focused_file = {
|
|
- enable = 1,
|
|
|
|
|
|
+ enable = true,
|
|
},
|
|
},
|
|
- lsp_diagnostics = 1,
|
|
|
|
|
|
+ lsp_diagnostics = true,
|
|
view = {
|
|
view = {
|
|
width = 30,
|
|
width = 30,
|
|
side = "left",
|
|
side = "left",
|
|
@@ -23,18 +23,18 @@ function M.config()
|
|
},
|
|
},
|
|
},
|
|
},
|
|
show_icons = {
|
|
show_icons = {
|
|
- git = 1,
|
|
|
|
- folders = 1,
|
|
|
|
- files = 1,
|
|
|
|
- folder_arrows = 1,
|
|
|
|
|
|
+ git = true,
|
|
|
|
+ folders = true,
|
|
|
|
+ files = true,
|
|
|
|
+ folder_arrows = true,
|
|
tree_width = 30,
|
|
tree_width = 30,
|
|
},
|
|
},
|
|
ignore = { ".git", "node_modules", ".cache" },
|
|
ignore = { ".git", "node_modules", ".cache" },
|
|
- quit_on_open = 0,
|
|
|
|
- hide_dotfiles = 1,
|
|
|
|
- git_hl = 1,
|
|
|
|
|
|
+ quit_on_open = false,
|
|
|
|
+ hide_dotfiles = true,
|
|
|
|
+ git_hl = true,
|
|
root_folder_modifier = ":t",
|
|
root_folder_modifier = ":t",
|
|
- allow_resize = 1,
|
|
|
|
|
|
+ allow_resize = true,
|
|
auto_ignore_ft = { "startify", "dashboard" },
|
|
auto_ignore_ft = { "startify", "dashboard" },
|
|
icons = {
|
|
icons = {
|
|
default = "",
|
|
default = "",
|
|
@@ -73,11 +73,11 @@ function M.setup()
|
|
|
|
|
|
-- Implicitly update nvim-tree when project module is active
|
|
-- Implicitly update nvim-tree when project module is active
|
|
if lvim.builtin.project.active then
|
|
if lvim.builtin.project.active then
|
|
- lvim.builtin.nvimtree.respect_buf_cwd = 1
|
|
|
|
- lvim.builtin.nvimtree.setup.update_cwd = 1
|
|
|
|
- lvim.builtin.nvimtree.setup.disable_netrw = 0
|
|
|
|
- lvim.builtin.nvimtree.setup.hijack_netrw = 0
|
|
|
|
- vim.g.netrw_banner = 0
|
|
|
|
|
|
+ lvim.builtin.nvimtree.respect_buf_cwd = true
|
|
|
|
+ lvim.builtin.nvimtree.setup.update_cwd = true
|
|
|
|
+ lvim.builtin.nvimtree.setup.disable_netrw = false
|
|
|
|
+ lvim.builtin.nvimtree.setup.hijack_netrw = false
|
|
|
|
+ vim.g.netrw_banner = false
|
|
end
|
|
end
|
|
|
|
|
|
local tree_cb = nvim_tree_config.nvim_tree_callback
|
|
local tree_cb = nvim_tree_config.nvim_tree_callback
|