Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PumClose autocmd #23

Merged
merged 1 commit into from
Jun 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions autoload/pum.vim
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ endfunction

function! pum#close() abort
call s:complete_done()
if exists('#User#PumClose')
silent! doautocmd <nomodeline> User PumClose
endif
return pum#popup#_close(pum#_get().id)
endfunction

Expand Down
4 changes: 4 additions & 0 deletions doc/pum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ PumCompleteDone
It is called after completion is done like |CompleteDone|.
|g:pum#completed_item| gives the completed item.

*PumClose*
PumClose
It is called before completion menu is closed.


==============================================================================
EXAMPLES *pum-examples*
Expand Down