add events: view_opened and view_closed (#965)

* add events: view_opened and view_closed

* fix typos

* rename view -> menu
This commit is contained in:
tzachar
2022-06-24 06:35:47 +03:00
committed by GitHub
parent df6734aa01
commit 8cab788976
3 changed files with 18 additions and 3 deletions

View File

@@ -222,6 +222,10 @@ NOTE: `<Cmd>lua require('cmp').complete()<CR>` can be used to call these functio
- `complete_done`: emit after current completion is done.
- `confirm_done`: emit after confirmation is done.
- `menu_opened`: emit after opening a new completion menu. Called with a table holding a key
named `window`, pointing to the completion menu implementation.
- `menu_closed`: emit after completion menu is closed. Called with a table holding a key
named `window`, pointing to the completion menu implementation.
==============================================================================
Mapping *cmp-mapping*