mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
docs: document namespace/augroup convention
This commit is contained in:
@@ -508,6 +508,15 @@ be a parameter (typically manifest as mutually-exclusive buf/win/… flags like
|
|||||||
- Example: `nvim_buf_del_mark` acts on a `Buffer` object (the first parameter)
|
- Example: `nvim_buf_del_mark` acts on a `Buffer` object (the first parameter)
|
||||||
and uses the "del" {verb}.
|
and uses the "del" {verb}.
|
||||||
|
|
||||||
|
*dev-namespace-name*
|
||||||
|
Use namespace names like `nvim.foo.bar`: >
|
||||||
|
vim.api.nvim_create_namespace('nvim.lsp.codelens')
|
||||||
|
<
|
||||||
|
|
||||||
|
*dev-augroup-name*
|
||||||
|
Use autocommand group names like `nvim.foo.bar`: >
|
||||||
|
vim.api.nvim_create_augroup('nvim.treesitter.dev')
|
||||||
|
<
|
||||||
|
|
||||||
INTERFACE PATTERNS *dev-api-patterns*
|
INTERFACE PATTERNS *dev-api-patterns*
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user