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:
parent
7c45912194
commit
7316bef23d
3 changed files with 65 additions and 12 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue