refactor: get rid of nui-components (#118)

This commit is contained in:
yetone
2024-08-21 21:28:17 +08:00
committed by GitHub
parent b995e4aa7b
commit 2e48d387a9
8 changed files with 1018 additions and 608 deletions

View File

@@ -156,12 +156,11 @@ function M.get_window_width()
return math.ceil(vim.o.columns * (M.windows.width / 100))
end
---@return {width: integer, height: integer, position: integer}
function M.get_renderer_layout_options()
---@return {width: integer, height: integer}
function M.get_sidebar_layout_options()
local width = M.get_window_width()
local height = vim.o.lines
local position = vim.o.columns - width
return { width = width, height = height, position = position }
return { width = width, height = height }
end
return M