Repository navigation
mini.nvim zen mode based on MiniMisc.zoom()
#2576
Replies: 2 comments
Thanks for the suggestion! The current implementation is the intended behavior and no further feature related changes to it are expected. There are dedicated plans for the variation of "center window on screen" in the planned 'mini.windows' module. As per the "Show and tell" code itself... It has the parts and almost looks like a full re-implementation of |


Uh oh!
There was an error while loading. Please reload this page.
As pointed out in #953,
MiniMisc.zoom()provides a feature close to "zen mode" by making the current window full screen.However it does not replicate some features of other zen mode implementation (e.g. Snacks.zen) such as centering the window horizontally on the screen. I played with copilot to create a tiny lua module that adds this functionality to the current zoom mode.
@echasnovski would there be interest for a (refactored) PR with these added features?
Leaving the implementation below in case it's useful to anyone! It can be mapped like this:
Click for the mini_zen.lua code
All reactions