diff --git a/README.md b/README.md index 7a03153..5911402 100644 --- a/README.md +++ b/README.md @@ -944,10 +944,17 @@ vim.api.nvim_buf_del_keymap(0, 'i', '') ## Defining user commands -The interface to create user commands was implemented on the PR below and is currently available on neovim 0.7+ (nightly): +The interface to create user commands was implemented on the PR below and is currently available only on neovim 0.7+ (nightly): - [Pull request #16752](https://github.com/neovim/neovim/pull/16752) +- Global user command: + - [`nvim_add_user_command()`](https://neovim.io/doc/user/api.html#nvim_add_user_command()) + - [`nvim_del_user_command()`](https://neovim.io/doc/user/api.html#nvim_del_user_command()) +- Buffer-local user commands: + - [`nvim_buf_add_user_command()`](https://neovim.io/doc/user/api.html#nvim_buf_add_user_command()) + - [`nvim_buf_del_user_command()`](https://neovim.io/doc/user/api.html#nvim_buf_del_user_command()) + ## Defining autocommands Augroups and autocommands do not have an interface yet but it is being worked on: