fix(picker): allow overriding winhl of layout box wins. Closes #1424

This commit is contained in:
Folke Lemaitre 2025-02-25 14:40:25 +01:00
parent 9ccf2d235b
commit b0f983ef9a
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -273,7 +273,7 @@ function M:init_layout(layout)
-- apply box highlight groups
local boxwhl = Snacks.picker.highlight.winhl("SnacksPickerBox")
for _, win in pairs(self.layout.box_wins) do
win.opts.wo.winhighlight = boxwhl
win.opts.wo.winhighlight = Snacks.util.winhl(boxwhl, win.opts.wo.winhighlight)
end
return layout
end