Skip to content

Commit

Permalink
fix(popup): show popup after content population for proper alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Dung Huynh Duc committed Jul 24, 2024
1 parent 993c640 commit 809891e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/hurl/popup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ M.show = function(data, type)

-- Set content to highlight, refer https://github.com/MunifTanjim/nui.nvim/issues/76#issuecomment-1001358770
vim.api.nvim_buf_set_option(popups.bottom.bufnr, 'filetype', type)

-- Show the popup after populating the content for alignment
layout:show()
end

M.clear = function()
Expand Down

0 comments on commit 809891e

Please sign in to comment.