Added resession extension to persist tabpage names across sessions #1034
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 feature adds a resession.nvim extension.
To enable the extension in your resession.nvim config, simply add an entry for it in your resession configuration:
Lazy.nvim example:
Now, when sessions are saved/loaded with resession.nvim, the bufferline tab-page names will persist.
Note: I put this together for the explicit purpose of better integrating bufferline with scope.nvim. Bufferline works out of the box with scope.nvim in almost every way. Tabpages are persisted, as are the per-tab pseudo-bufferlists that scope.nvim uses. However, even though the tabpages' content gets persisted, all of the tabs are renamed to 1,2...N whenever reloading a session. With this very small addition to bufferline, the combined usage of scope.nvim, bufferline .nvim, and resession.nvim feels very nice.