From 291d13706479b94f99a0041d4c0306bb71d64b1a Mon Sep 17 00:00:00 2001 From: glepnir Date: Sun, 2 Jun 2024 15:21:09 +0800 Subject: [PATCH] make sure the info preview zindex is highest --- lua/epo/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/epo/init.lua b/lua/epo/init.lua index 8d84c34..0a5ee76 100644 --- a/lua/epo/init.lua +++ b/lua/epo/init.lua @@ -105,6 +105,11 @@ local function popup_markdown_set(wininfo) vim.wo[wininfo.winid].conceallevel = 2 vim.wo[wininfo.winid].concealcursor = 'niv' vim.treesitter.start(wininfo.bufnr, 'markdown') + if #api.nvim_win_get_config(0).relative > 0 then + local config = api.nvim_win_get_config(wininfo.winid) + config.zindex = 999 + api.nvim_win_set_config(wininfo.winid, config) + end end local function show_info(bufnr, curitem, selected)