Question about misc.zoom() #1953
Replies: 2 comments 2 replies
-
here
If you already have a plan for that |
Beta Was this translation helpful? Give feedback.
-
Of course, it requires writing a custom function wrapper. Something like this: local zoom_with_winbar = function()
MiniMisc.zoom()
-- Set local winbar only if zoomed in
if vim.api.nvim_win_get_config(0).relative == '' then return end
vim.wo.winbar = 'my winbar'
end
vim.keymap.set('n', '<Leader>oz', zoom_with_winbar, { desc = 'Zoom window' }) As this is not the first time I had to check if |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Contributing guidelines
Module(s)
mini.misc
Question
Hello,
I've been shopping around for a plugin that will let me zoom into a buffer, like mini.misc.zoom() does! Of course I should have expected that mini would have what I was looking for :D
I also use dropbar.nvim, and I'm wondering if there is any way to zoom into the buffer but maintain my custom winbar? It really helps me to have it there to remember what file I'm working in. I will add that it reappears if I hit space.
Thanks in advance!
Joe
Beta Was this translation helpful? Give feedback.
All reactions