mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(layout): allow root with relative=cursor. Closes #479
This commit is contained in:
parent
3fdb7f4461
commit
f06f14c4ae
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ function M.new(opts)
|
|||
backdrop = nil
|
||||
end
|
||||
self.box_wins[box.id] = Snacks.win(Snacks.win.resolve(box, {
|
||||
relative = is_root and "editor" or "win",
|
||||
relative = is_root and (box.relative or "editor") or "win",
|
||||
focusable = false,
|
||||
enter = false,
|
||||
show = false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue