Merge pull request #91 from marcuscaisey/relative-width
Calculate outline width relative to number of columns on screen
This commit is contained in:
@@ -72,7 +72,7 @@ end
|
||||
|
||||
function M.get_window_width()
|
||||
if M.options.relative_width then
|
||||
return math.ceil(vim.api.nvim_win_get_width(0) * (M.options.width / 100))
|
||||
return math.ceil(vim.o.columns * (M.options.width / 100))
|
||||
else
|
||||
return M.options.width
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user