chore(sidebar): make sure to balance win when close (#198)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham 2024-08-24 13:13:50 -04:00 committed by GitHub
parent 303928de88
commit 8d375dd591
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,6 +110,8 @@ function Sidebar:close()
if self.code ~= nil and api.nvim_win_is_valid(self.code.winid) then
fn.win_gotoid(self.code.winid)
end
vim.cmd("wincmd =")
end
---@return boolean