diff options
author | kylo252 <[email protected]> | 2022-02-11 16:41:30 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-02-11 16:41:30 +0100 |
commit | 564798b83e40e622fb5c1b6f3803b80f42d092ec (patch) | |
tree | e0fd932965e67a3eca9b5866b914618b00914924 | |
parent | de3909fac935c215ddeaf8fb0da14bc155aa5f7e (diff) |
refactor(nvim-tree): remove unused code (#2266)
-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 |