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