refactor: api and command focus call tree.open(), soft deprecate tree.focus()

This commit is contained in:
Alexander Courtis
2023-11-26 10:02:47 +11:00
committed by gegoune
parent 5e4475d8bf
commit d5cc938ab0
4 changed files with 5 additions and 10 deletions

View File

@@ -86,7 +86,7 @@ Api.tree.close_in_this_tab = wrap(require("nvim-tree.view").close_this_tab_only)
Api.tree.close_in_all_tabs = wrap(require("nvim-tree.view").close_all_tabs)
Api.tree.focus = wrap(function()
require("nvim-tree").focus()
Api.tree.open()
end)
Api.tree.reload = wrap(require("nvim-tree.actions.reloaders.reloaders").reload_explorer)