aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorchemzqm <chemzqm@gmail.com>2019-02-16 04:54:10 +0800
committerchemzqm <chemzqm@gmail.com>2019-03-15 04:24:41 +0800
commit6c375d71c3a92b0f83f1756799520ae61d11e64e (patch)
treef59a5c7d4f9e5ad461e603626715d05e86305724 /runtime
parent7e6fce0698f52fb189a78bf7388a4bdb238dcde7 (diff)
downloadrneovim-6c375d71c3a92b0f83f1756799520ae61d11e64e.tar.gz
rneovim-6c375d71c3a92b0f83f1756799520ae61d11e64e.tar.bz2
rneovim-6c375d71c3a92b0f83f1756799520ae61d11e64e.zip
autocmd: add MenuPopupChanged autocmd
Update src/nvim/auevents.lua Co-Authored-By: chemzqm <chemzqm@gmail.com>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/autocmd.txt17
-rw-r--r--runtime/doc/eval.txt13
2 files changed, 30 insertions, 0 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
index 6423939b83..89d9e45e0d 100644
--- a/runtime/doc/autocmd.txt
+++ b/runtime/doc/autocmd.txt
@@ -350,6 +350,7 @@ Name triggered by ~
|SessionLoadPost| after loading a session file
|MenuPopup| just before showing the popup menu
+|MenuPopupChanged| after popup menu changed, not fired on popup menu hide
|CompleteDone| after Insert mode completion is done
|User| to be used in combination with ":doautocmd"
@@ -843,6 +844,22 @@ MenuPopup Just before showing the popup menu (under the
o Operator-pending
i Insert
c Command line
+MenuPopupChanged *MenuPopupChanged*
+ After each time popup menu changed, not fired
+ on popup menu hide, use |CompleteDone| for popup
+ menu hide.
+
+ Sets these |v:event| keys:
+ completed_item
+ height
+ width
+ row
+ col
+ size
+ scrollbar
+
+ It is not allowed to change the text |textlock|.
+
*OptionSet*
OptionSet After setting an option. The pattern is
matched against the long option name.
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 3efe651dfe..2610b2683e 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1552,6 +1552,19 @@ v:event Dictionary of event data for the current |autocommand|. Valid
operation.
regtype Type of register as returned by
|getregtype()|.
+ completed_item Current selected complete item on
+ |MenuPopupChanged|, Is `{}` when no complete
+ item selected.
+ height Height of popup menu on |MenuPopupChanged|
+ width width of popup menu on |MenuPopupChanged|
+ row Row count of popup menu on |MenuPopupChanged|,
+ relative to screen.
+ col Col count of popup menu on |MenuPopupChanged|,
+ relative to screen.
+ size Total number of completion items on
+ |MenuPopupChanged|.
+ scrollbar Is |v:true| if popup menu have scrollbar, or
+ |v:false| if not.
*v:exception* *exception-variable*
v:exception The value of the exception most recently caught and not