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

Commit

Permalink
wininfo check
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Apr 29, 2024
1 parent ed24941 commit 4ead575
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/epo/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ local function close_popup_win(winid)
end

local function popup_markdown_set(wininfo)
if vim.tbl_isempty(wininfo) then
return
end
vim.wo[wininfo.winid].conceallevel = 2
vim.wo[wininfo.winid].concealcursor = 'niv'
vim.treesitter.start(wininfo.bufnr, 'markdown')
Expand Down Expand Up @@ -127,9 +130,6 @@ local function show_info(bufnr, curitem, selected)
return
end
local wininfo = api.nvim_complete_set(selected, { info = value })
if vim.tbl_isempty(wininfo) then
return
end
popup_markdown_set(wininfo)
end, bufnr)
end
Expand Down

0 comments on commit 4ead575

Please sign in to comment.