diff options
author | kylo252 <[email protected]> | 2022-06-23 16:12:26 +0200 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-06-23 16:12:26 +0200 |
commit | 57bebb5c51a4e93b283a5c65563254b9bfb492cf (patch) | |
tree | 8a6f0a3596e534002833038bea79d5ede57dc563 /lua/lvim/core/nvimtree.lua | |
parent | f1a672f8674f68d6a610b95fef29ed15339b3cbd (diff) | |
parent | 8989984b781367b2744c4857e73d8943311db241 (diff) |
Merge branch 'rolling'
Diffstat (limited to 'lua/lvim/core/nvimtree.lua')
-rw-r--r-- | lua/lvim/core/nvimtree.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lua/lvim/core/nvimtree.lua b/lua/lvim/core/nvimtree.lua index 7f50f256..9d7ab069 100644 --- a/lua/lvim/core/nvimtree.lua +++ b/lua/lvim/core/nvimtree.lua @@ -148,7 +148,6 @@ function M.config() }, }, } - lvim.builtin.which_key.mappings["e"] = { "<cmd>NvimTreeToggle<CR>", "Explorer" } end function M.setup() @@ -158,10 +157,14 @@ function M.setup() return 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 + lvim.builtin.which_key.mappings["e"] = { "<cmd>NvimTreeToggle<CR>", "Explorer" } + lvim.builtin.nvimtree._setup_called = true + -- Implicitly update nvim-tree when project module is active if lvim.builtin.project.active then lvim.builtin.nvimtree.setup.respect_buf_cwd = true |