Add NvimTreeResize to resize the NvimTree window (#497)

This commit is contained in:
Kassio Borges
2021-07-10 09:52:20 +01:00
committed by GitHub
parent 102c4c2332
commit 07dd10663a
3 changed files with 11 additions and 0 deletions

View File

@@ -158,6 +158,11 @@ function M.find_file(with_open)
lib.set_index_and_redraw(filepath)
end
function M.resize(size)
view.View.width = size
view.resize()
end
function M.on_leave()
vim.defer_fn(function()
if not view.win_open() then