fix(input): zindex

This commit is contained in:
Folke Lemaitre 2025-10-21 13:32:59 +02:00
parent 4f1493025f
commit 67d690d362
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -215,7 +215,7 @@ function M.input(opts, on_confirm)
})
local parent_zindex = vim.api.nvim_win_get_config(parent_win).zindex
opts.win.zindex = parent_zindex and parent_zindex + 1 or opts.win.zindex
opts.win.zindex = math.max(parent_zindex + 1, opts.win.zindex or 50)
local min_width = opts.win.width or 60
if opts.expand then