feat: Sync nvim-tree across tabs#1662
Closed
rwblokzijl wants to merge 0 commit intonvim-tree:masterfrom
Closed
Conversation
Member
This was present in the past however was removed as it is unavoidably problematic. #1005 (comment) You may implement this functionality yourself: https://github.com/nvim-tree/nvim-tree.lua#tips--tricks |
lua/nvim-tree.lua
Outdated
|
|
||
| function M.open(cwd) | ||
| cwd = cwd ~= "" and cwd or nil | ||
| vim.g.nvim_tree_tab_open = 1 |
Member
There was a problem hiding this comment.
We do not use global variables to track nvim-tree state.
Please test via something like:
- iterate windows on tab
- test
utils.is_nvim_tree_buf
alex-courtis
requested changes
Oct 17, 2022
Member
There was a problem hiding this comment.
I've not tested nor fully reviewed yet.
Please:
- remove auto close
- avoid global variable
- resolve stylua issues as per https://github.com/nvim-tree/nvim-tree.lua/blob/master/CONTRIBUTING.md
Contributor
Author
|
Closed by force push i think. See #1698 |
Member
|
Please don't force push. Rebase or merge your branch instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR syncs nvim tree across tabs if
open_on_tabis set.Previously:
Now:
:quit) this is also synced across tabs