aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-03-16 10:36:54 +0100
committerGitHub <noreply@github.com>2019-03-16 10:36:54 +0100
commit175398f21645552b708a7626309b826ae0f3d8a8 (patch)
tree7e7597cd82108f4148d7dc2ef3b3365e78a39e01 /runtime
parentb90256e6cc2ab22c552660c70462c08ba5fd984b (diff)
parent6c375d71c3a92b0f83f1756799520ae61d11e64e (diff)
downloadrneovim-175398f21645552b708a7626309b826ae0f3d8a8.tar.gz
rneovim-175398f21645552b708a7626309b826ae0f3d8a8.tar.bz2
rneovim-175398f21645552b708a7626309b826ae0f3d8a8.zip
Merge pull request #9616 from chemzqm/completechange
add MenuPopupChanged autocmd
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 4372342c02..ca10d44467 100644
--- a/runtime/doc/autocmd.txt
+++ b/runtime/doc/autocmd.txt
@@ -354,6 +354,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"
@@ -852,6 +853,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 b073c6b97c..020427c66f 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1553,6 +1553,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