Closed xeluxee closed 1 year ago
@xeluxee can you check if https://github.com/MunifTanjim/nui.nvim/pull/237 solves the issue for you?
Also if you want to organize multiple popups in a specific layout, you can try nui.layout
for that. It already supports the desired behavior for :quit
command. If one of the popup in a layout is quitted, the whole layout is unmounted.
can you check if https://github.com/MunifTanjim/nui.nvim/pull/237 solves the issue for you?
Thanks, it solves my issue.
Also if you want to organize multiple popups in a specific layout, you can try
nui.layout
for that. It already supports the desired behavior for:quit
command. If one of the popup in a layout is quitted, the whole layout is unmounted.
I wrote my code before nui.layout
existed. Soon or later I'll rewrite it using layouts.
Consider the following working code:
When I close the popup with
:q
the callback is executed and "QuitPre autocommand" is printedBut when the autocommand is created after popup is mounted the callback doesn't work:
When I close the popup with
:q
nothing happens