update nvim-tree based on the refactor (#1617)

This commit is contained in:
Abouzar Parvan 2021-09-25 20:47:50 +03:30 committed by GitHub
parent 810fc26fdf
commit 64a5964b54
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()