diff options
| author | kylo252 <[email protected]> | 2022-02-12 09:17:34 +0100 | 
|---|---|---|
| committer | kylo252 <[email protected]> | 2022-02-12 09:17:34 +0100 | 
| commit | ff9d883f64b75cb36f3164aae9d36a372f8b46d7 (patch) | |
| tree | 27f496c5d814fde1bb5950f5580ed476f7fa02d1 /lua/lvim/core/nvimtree.lua | |
| parent | 2fa176f23fb8dffbafbac6a1f5e34c1f9c79c3f7 (diff) | |
| parent | 564798b83e40e622fb5c1b6f3803b80f42d092ec (diff) | |
Merge branch 'rolling'
Diffstat (limited to 'lua/lvim/core/nvimtree.lua')
| -rw-r--r-- | lua/lvim/core/nvimtree.lua | 28 | 
1 files changed, 0 insertions, 28 deletions
diff --git a/lua/lvim/core/nvimtree.lua b/lua/lvim/core/nvimtree.lua index 287791b8..17b8f36a 100644 --- a/lua/lvim/core/nvimtree.lua +++ b/lua/lvim/core/nvimtree.lua @@ -136,34 +136,6 @@ function M.setup()      }    end -  local function on_open() -    if package.loaded["bufferline.state"] and lvim.builtin.nvimtree.setup.view.side == "left" then -      require("bufferline.state").set_offset(lvim.builtin.nvimtree.setup.view.width + 1, "") -    end -  end - -  local function on_close() -    local bufnr = vim.api.nvim_get_current_buf() -    local ft = vim.api.nvim_buf_get_option(bufnr, "filetype") -    if ft == "NvimTree" and package.loaded["bufferline.state"] then -      require("bufferline.state").set_offset(0) -    end -  end - -  local tree_view = require "nvim-tree.view" -  local default_open = tree_view.open -  local default_close = tree_view.close - -  tree_view.open = function() -    on_open() -    default_open() -  end - -  tree_view.close = function() -    on_close() -    default_close() -  end -    if lvim.builtin.nvimtree.on_config_done then      lvim.builtin.nvimtree.on_config_done(nvim_tree_config)    end  | 
