Skip to content

Commit 62d1e2e

Browse files
authored
feat(popup): add 'finalize_callback' option (#513)
1 parent 23deb47 commit 62d1e2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/plenary/popup/init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,10 @@ function popup.create(what, vim_options)
426426
{ noremap = true }
427427
)
428428
end
429+
430+
if vim_options.finalize_callback then
431+
vim_options.finalize_callback(win_id, bufnr)
432+
end
429433

430434
-- TODO: Perhaps there's a way to return an object that looks like a window id,
431435
-- but actually has some extra metadata about it.

0 commit comments

Comments
 (0)