aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-01-04 11:51:45 -0700
committerGitHub <noreply@github.com>2022-01-04 11:51:45 -0700
commit39238435dbfc632356d10f287994c80142dd95bd (patch)
treeb584be6e0ad34472e545a33ada895c7f3cc757bc /runtime
parent0b0c4f7dfa4a9a564cbf44262d4bea9bdefe2dc9 (diff)
downloadrneovim-39238435dbfc632356d10f287994c80142dd95bd.tar.gz
rneovim-39238435dbfc632356d10f287994c80142dd95bd.tar.bz2
rneovim-39238435dbfc632356d10f287994c80142dd95bd.zip
fix(api): force redefinition of user commands by default (#16918)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt19
1 files changed, 11 insertions, 8 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index fcbbb6c4d8..0daca0de53 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -667,14 +667,17 @@ nvim_add_user_command({name}, {command}, {*opts})
{opts} Optional command attributes. See
|command-attributes| for more details. To use
boolean attributes (such as |:command-bang| or
- |:command-bar|) set the value to "true". When
- using a Lua function for {command} you can also
- provide a "desc" key that will be displayed
- when listing commands. In addition to the
- string options listed in |:command-complete|,
- the "complete" key also accepts a Lua function
- which works like the "customlist" completion
- mode |:command-completion-customlist|.
+ |:command-bar|) set the value to "true". In
+ addition to the string options listed in
+ |:command-complete|, the "complete" key also
+ accepts a Lua function which works like the
+ "customlist" completion mode
+ |:command-completion-customlist|. Additional
+ parameters:
+ • desc: (string) Used for listing the command
+ when a Lua function is used for {command}.
+ • force: (boolean, default true) Override any
+ previous definition.
nvim_call_atomic({calls}) *nvim_call_atomic()*
Calls many API methods atomically.