fix(picker): consider zen windows as main. Closes #973

This commit is contained in:
Folke Lemaitre 2025-02-07 06:38:37 +01:00
parent e2e18a94f3
commit b1db65ac61
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 6 additions and 0 deletions

View file

@ -57,6 +57,9 @@ function M:find()
if win == 0 or not vim.api.nvim_win_is_valid(win) then
return false
end
if vim.w[win].snacks_main then
return true
end
local win_config = vim.api.nvim_win_get_config(win)
local is_float = win_config.relative ~= ""
if not is_float then

View file

@ -59,6 +59,9 @@ Snacks.config.style("zen", {
wo = {
winhighlight = "NormalFloat:Normal",
},
w = {
snacks_main = true,
},
})
-- fullscreen indicator