Table of contents
Function signature:
(create name callback desc ?args)
Macro -- Creates a user command
@name: |string| ### Name for user command
@callback: |string| ### The function that gets called on fire of user command
@desc: |string| ### Description of user command
@?args: |opt table| ### Opts table for vim.api.nvim_create_user_command
Function signature:
(define name command desc ?args)
Macro -- Defines a user command with a returned value
@name: |string| ### Name for user command
@callback: |string| ### The function that gets called on fire of user command
@desc: |string| ### Description of user command
@?args: |opt table| ### Opts table for vim.api.nvim_create_user_command
Returns a string of the user-command name
Function signature:
(delete! name ?buffer)
Macro -- delete a user command
@name: |string| ### Name for user command
@?buffer(optional): |int| or |boolean| ### Use a buffer
Buffer created user commands will fail if ?buffer is not provided
Function signature:
(run.cmd function ...)
Macro -- Abbreviated M.run.command
Function signature:
(run.command function ...)
Macro -- Runs a Ex command
@function: |Ex| ### Ex function
@... ### Arguments for Ex command
Can accept a table for functions that take key=val args
Function signature:
(run.fn function ...)
Macro -- Abbreviated M.run.function
Function signature:
(run.function function ...)
Macro -- Runs a VimL function
@function: |Vimscript| ### Vimscript function
@... ### Arguments for Vimscript command
Returns boolean for builtin truthy/falsy functions such as 'has()'
License: Unlicense