Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
make sure the info preview zindex is highest
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Jun 2, 2024
1 parent 354ec2a commit 291d137
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/epo/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 291d137

Please sign in to comment.