mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 19:18:34 +00:00
Merge pull request #18792 from famiu/feat/nvim_create_user_command/smods
feat(api): pass structured modifiers to commands
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user