|
|
@ -254,8 +254,13 @@ M.winopts = function(opts)
|
|
|
|
"win_height", "win_width",
|
|
|
|
"win_height", "win_width",
|
|
|
|
"win_row", "win_col", "win_border",
|
|
|
|
"win_row", "win_col", "win_border",
|
|
|
|
"window_on_create",
|
|
|
|
"window_on_create",
|
|
|
|
|
|
|
|
"winopts_raw",
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if opts.winopts_raw and type(opts.winopts_raw) == "function" then
|
|
|
|
|
|
|
|
return opts.winopts_raw()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
local height = math.floor(vim.o.lines * opts.win_height)
|
|
|
|
local height = math.floor(vim.o.lines * opts.win_height)
|
|
|
|
local width = math.floor(vim.o.columns * opts.win_width)
|
|
|
|
local width = math.floor(vim.o.columns * opts.win_width)
|
|
|
|
local row = math.floor((vim.o.lines - height) * opts.win_row)
|
|
|
|
local row = math.floor((vim.o.lines - height) * opts.win_row)
|
|
|
|