feat(tabs): add tab.sync options (#1698)
* Sync closing of nvim-tree across tabs * chore: remove vim.* "requires" * Sync closing of nvim-tree across tabs * Fix api.close calls * Fix issue from merge * Implement changes * Finish todos and add close_all_tabs * silently refactor options, add doc * fix vinegar example * Refactor close to work with tabid * Close nvim tree if last buffer * close and abandon all tabs on subsequent setup calls Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
@@ -18,6 +18,8 @@ end
|
||||
Api.tree.open = require("nvim-tree").open
|
||||
Api.tree.toggle = require("nvim-tree").toggle
|
||||
Api.tree.close = require("nvim-tree.view").close
|
||||
Api.tree.close_in_this_tab = require("nvim-tree.view").close_this_tab_only
|
||||
Api.tree.close_in_all_tabs = require("nvim-tree.view").close_all_tabs
|
||||
Api.tree.focus = require("nvim-tree").focus
|
||||
Api.tree.reload = require("nvim-tree.actions.reloaders.reloaders").reload_explorer
|
||||
Api.tree.change_root = require("nvim-tree").change_dir
|
||||
|
||||
Reference in New Issue
Block a user