mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(input): make sure to show input window with a higher zindex of the parent window (if float)
This commit is contained in:
parent
ff803a60b3
commit
3123e6e988
1 changed files with 3 additions and 0 deletions
|
@ -167,6 +167,9 @@ 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
|
||||
|
||||
local min_width = opts.win.width or 60
|
||||
if opts.expand then
|
||||
---@param self snacks.win
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue