refactor: clean up duplicate helper method

This commit is contained in:
Steven Arcangeli 2023-03-28 11:54:44 -07:00
parent d631d9fc5a
commit 080dd27474
6 changed files with 14 additions and 21 deletions

View file

@ -13,10 +13,12 @@ local function calc_float(value, max_value)
end
end
---@return integer
M.get_editor_width = function()
return vim.o.columns
end
---@return integer
M.get_editor_height = function()
local editor_height = vim.o.lines - vim.o.cmdheight
-- Subtract 1 if tabline is visible