Add autosizing whenever we open/close an edge panel, meaning we always

keep the relative width/height of the main windows
This commit is contained in:
Martin Larsson 2024-07-05 16:50:17 +02:00
parent 7c45912194
commit 7316bef23d
3 changed files with 65 additions and 12 deletions

View file

@ -40,10 +40,14 @@ local function toggle_terminal()
end
function M.setup()
local wm = require("window_management")
utils.add_keymaps({
n = {
["<leader>h"] = {
cmd = toggle_terminal
cmd = function()
toggle_terminal()
wm.autosize_windows()
end,
}
}
})