refactor: clean up duplicate helper method
This commit is contained in:
parent
d631d9fc5a
commit
080dd27474
6 changed files with 14 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue