Skip to content

Commit

Permalink
Merge pull request #16804 from zeertzjq/ui-aucmd-docs
Browse files Browse the repository at this point in the history
docs: clarify UIEnter and UILeave docs
  • Loading branch information
zeertzjq committed Mar 2, 2022
2 parents 4c24fcb + f6df442 commit 4b3f920
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions runtime/doc/autocmd.txt
Expand Up @@ -674,15 +674,19 @@ FuncUndefined When a user function is used but it isn't
alternative is to use an autoloaded function.
See |autoload-functions|.
*UIEnter*
UIEnter After a UI connects via |nvim_ui_attach()|,
after VimEnter. Can be used for GUI-specific
configuration.
UIEnter After a UI connects via |nvim_ui_attach()|, or
after builtin TUI is started, after |VimEnter|.
Sets these |v:event| keys:
chan
chan: 0 for builtin TUI
1 for |--embed|
|channel-id| of the UI otherwise
*UILeave*
UILeave After a UI disconnects from Nvim.
UILeave After a UI disconnects from Nvim, or after
builtin TUI is stopped, after |VimLeave|.
Sets these |v:event| keys:
chan
chan: 0 for builtin TUI
1 for |--embed|
|channel-id| of the UI otherwise
*InsertChange*
InsertChange When typing <Insert> while in Insert or
Replace mode. The |v:insertmode| variable
Expand Down

0 comments on commit 4b3f920

Please sign in to comment.