From 809891ee248fea594699e1dfdf195c7a23ab9259 Mon Sep 17 00:00:00 2001 From: Dung Huynh Duc <> Date: Wed, 24 Jul 2024 12:51:04 +0800 Subject: [PATCH] fix(popup): show popup after content population for proper alignment --- lua/hurl/popup.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/hurl/popup.lua b/lua/hurl/popup.lua index c845a32..b2b6d7a 100644 --- a/lua/hurl/popup.lua +++ b/lua/hurl/popup.lua @@ -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()