fix: sidebar layout (#2281)
This commit is contained in:
@@ -187,6 +187,7 @@ function Sidebar:setup_colors()
|
||||
::continue::
|
||||
end
|
||||
self:set_code_winhl()
|
||||
self:adjust_layout()
|
||||
end,
|
||||
})
|
||||
end
|
||||
@@ -2962,8 +2963,10 @@ function Sidebar:get_result_container_width()
|
||||
end
|
||||
|
||||
function Sidebar:adjust_result_container_layout()
|
||||
local width = self:get_result_container_width()
|
||||
local height = self:get_result_container_height()
|
||||
|
||||
api.nvim_win_set_width(self.result_container.winid, width)
|
||||
api.nvim_win_set_height(self.result_container.winid, height)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user