Merge pull request #18792 from famiu/feat/nvim_create_user_command/smods

feat(api): pass structured modifiers to commands
This commit is contained in:
bfredl
2022-05-29 15:23:51 +02:00
committed by GitHub
4 changed files with 194 additions and 0 deletions

View File

@@ -743,6 +743,9 @@ nvim_create_user_command({name}, {command}, {*opts})
specified |<reg>|
• mods: (string) Command modifiers, if any
|<mods>|
• smods: (table) Command modifiers in a
structured format. Has the same structure as
the "mods" key of |nvim_parse_cmd()|.
{opts} Optional command attributes. See
|command-attributes| for more details. To use
boolean attributes (such as |:command-bang| or