|
@@ -158,10 +158,13 @@ function M.setup()
|
|
return
|
|
return
|
|
end
|
|
end
|
|
|
|
|
|
- for opt, val in pairs(lvim.builtin.nvimtree) do
|
|
|
|
- vim.g["nvim_tree_" .. opt] = val
|
|
|
|
|
|
+ if lvim.builtin.nvimtree._setup_called then
|
|
|
|
+ Log:debug "ignoring repeated setup call for nvim-tree, see kyazdani42/nvim-tree.lua#1308"
|
|
|
|
+ return
|
|
end
|
|
end
|
|
|
|
|
|
|
|
+ lvim.builtin.nvimtree._setup_called = true
|
|
|
|
+
|
|
-- 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.setup.respect_buf_cwd = true
|
|
lvim.builtin.nvimtree.setup.respect_buf_cwd = true
|