fix(compat): fixes for Neovim < 0.10

This commit is contained in:
Folke Lemaitre 2024-12-11 23:20:28 +01:00
parent b13eaf6bd9
commit 33fbb309f8
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
5 changed files with 20 additions and 7 deletions

View file

@ -653,6 +653,10 @@ function M:win_opts()
opts.row = opts.row or math.floor((parent.height - opts.height - border_offset) / 2)
opts.col = opts.col or math.floor((parent.width - opts.width - border_offset) / 2)
if vim.fn.has("nvim-0.10") == 0 then
opts.footer, opts.footer_pos = nil, nil
end
return opts
end