Problem:
After I started nvim with two windows in a tab, I called :FocusToggle and no window resized. If I I call :FocusToggle second time, it works. If I call :FocusEnable at the begining, it works too.
Expeced behavior
Calling :FocusToggle for the first time will resize windows
This is my focus config and mapping.
{
"beauwilliams/focus.nvim",
cmd = { "FocusToggle" },
}
nnoremap <leader>kz <cmd>FocusToggle<cr>
Problem:
After I started nvim with two windows in a tab, I called
:FocusToggleand no window resized. If I I call:FocusTogglesecond time, it works. If I call:FocusEnableat the begining, it works too.Expeced behavior
Calling
:FocusTogglefor the first time will resize windowsThis is my
focusconfig and mapping.{ "beauwilliams/focus.nvim", cmd = { "FocusToggle" }, } nnoremap <leader>kz <cmd>FocusToggle<cr>