diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2022-12-14 19:58:18 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2023-02-22 16:23:49 +0100 |
| commit | 6752f1005d26c93a033d856a60b7b296f3e51634 (patch) | |
| tree | 5681d87457d1409b848947efc637dcc8eced2a81 /runtime/doc/lua-guide.txt | |
| parent | 0b36145c696fb58e002169edd4f9a1d9a8176fc3 (diff) | |
| download | rneovim-6752f1005d26c93a033d856a60b7b296f3e51634.tar.gz rneovim-6752f1005d26c93a033d856a60b7b296f3e51634.tar.bz2 rneovim-6752f1005d26c93a033d856a60b7b296f3e51634.zip | |
docs: naming conventions, guidelines
close #21063
Diffstat (limited to 'runtime/doc/lua-guide.txt')
| -rw-r--r-- | runtime/doc/lua-guide.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/lua-guide.txt b/runtime/doc/lua-guide.txt index b971a7d2ad..236905a077 100644 --- a/runtime/doc/lua-guide.txt +++ b/runtime/doc/lua-guide.txt @@ -657,7 +657,7 @@ See also • |nvim_exec_autocmds()|: execute all matching autocommands ============================================================================== -User commands *lua-guide-usercommands* +User commands *lua-guide-commands* |user-commands| are custom Vim commands that call a Vimscript or Lua function. Just like built-in commands, they can have arguments, act on ranges, or have @@ -665,7 +665,7 @@ custom completion of arguments. As these are most useful for plugins, we will cover only the basics of this advanced topic. ------------------------------------------------------------------------------ -Creating user commands *lua-guide-usercommands-create* +Creating user commands *lua-guide-commands-create* User commands can be created through the Neovim API with `vim.api.`|nvim_create_user_command()|. This function takes three mandatory @@ -734,7 +734,7 @@ the remaining arguments are the same as for |nvim_create_user_command()|: { nargs = 1 }) < ------------------------------------------------------------------------------ -Deleting user commands *lua-guide-usercommands-delete* +Deleting user commands *lua-guide-commands-delete* User commands can be deleted with `vim.api.`|nvim_del_user_command()|. The only argument is the name of the command: |