From e796aef0fabc791cdb4a7ec6ecfc91b0eccce1d7 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 21 Oct 2025 12:49:46 +0200 Subject: [PATCH] fix(picker): correct z-index for preview="main" layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using `preview="main"`, the preview window floats over the main editor window. Set its z-index to 40 (lower than the default 50) to ensure input and help windows remain on top and visible. Fixes #2257 (first issue) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- lua/snacks/picker/core/preview.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/snacks/picker/core/preview.lua b/lua/snacks/picker/core/preview.lua index 1c8f76bc..7cb12091 100644 --- a/lua/snacks/picker/core/preview.lua +++ b/lua/snacks/picker/core/preview.lua @@ -90,6 +90,7 @@ function M.new(picker) main = { relative = "win", backdrop = false, + zindex = 40, -- Lower than default (50) so input/help windows stay on top }, layout = { backdrop = win_opts.backdrop == true,