diff options
author | Abouzar Parvan <[email protected]> | 2021-09-25 20:47:50 +0330 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-25 20:47:50 +0330 |
commit | 64a5964b545ec7f3f78f725ec96cba553a496d9f (patch) | |
tree | 9880e80d8a82d0d141293770af47184e6454c752 /lua/core/nvimtree.lua | |
parent | 810fc26fdf05504f813f049eb8d5277260e08d21 (diff) |
update nvim-tree based on the refactor (#1617)
Diffstat (limited to 'lua/core/nvimtree.lua')
-rw-r--r-- | lua/core/nvimtree.lua | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lua/core/nvimtree.lua b/lua/core/nvimtree.lua index 6aa5401d..5007cf7c 100644 --- a/lua/core/nvimtree.lua +++ b/lua/core/nvimtree.lua @@ -57,16 +57,12 @@ function M.setup() end local g = vim.g - for opt, val in pairs(lvim.builtin.nvimtree) do - g["nvim_tree_" .. opt] = val - end - -- Implicitly update nvim-tree when project module is active if lvim.builtin.project.active then - vim.g.nvim_tree_update_cwd = 1 - vim.g.nvim_tree_respect_buf_cwd = 1 - vim.g.nvim_tree_disable_netrw = 0 - vim.g.nvim_tree_hijack_netrw = 0 + lvim.builtin.nvimtree.update_cwd = 1 + lvim.builtin.nvimtree.respect_buf_cwd = 1 + lvim.builtin.nvimtree.disable_netrw = 0 + lvim.builtin.nvimtree.hijack_netrw = 0 vim.g.netrw_banner = 0 end @@ -96,6 +92,7 @@ function M.setup() if lvim.builtin.nvimtree.on_config_done then lvim.builtin.nvimtree.on_config_done(nvim_tree_config) end + require("nvim-tree").setup(lvim.builtin.nvimtree) end function M.on_open() |