-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: using folke/snacks.nvim can preserve window layouts on deletes
Issue ===== When yazi deletes a file, yazi.nvim also closes that buffer. However, the default implementation in neovim is to also close the window/split if one is currently open. This is distracting and annoying for users (me). Solution ======== If the https://github.com/folke/snacks.nvim plugin is installed, yazi.nvim uses that to delete the buffer while preserving the window layout. If it's not installed, the old (annoying) behavior is used. In the future, snacks.nvim might come a required dependency for yazi.nvim.
- Loading branch information
1 parent
74019bf
commit 27bf004
Showing
5 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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