mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-03 18:28:38 +00:00
fix(compat): fixes for Neovim < 0.10
This commit is contained in:
parent
b13eaf6bd9
commit
33fbb309f8
5 changed files with 20 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue