diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-12 00:11:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-12 00:11:57 +0200 |
| commit | ab7d9ae19356aa2b1a3c12a9846bc279d159e763 (patch) | |
| tree | 5fe18e2e7b23ee8eba8bc0f7b0bdaa53046fa454 /runtime/doc/develop.txt | |
| parent | 7c9d4d971cab4525fb2245ec527736b4e9471e84 (diff) | |
| parent | a0f775c4d3eedfb845d1254cae767a38a1c28b93 (diff) | |
| download | rneovim-ab7d9ae19356aa2b1a3c12a9846bc279d159e763.tar.gz rneovim-ab7d9ae19356aa2b1a3c12a9846bc279d159e763.tar.bz2 rneovim-ab7d9ae19356aa2b1a3c12a9846bc279d159e763.zip | |
Merge #9993 from justinmk/ui-message-kinds
UI/ext_messages: learn more message kinds
Diffstat (limited to 'runtime/doc/develop.txt')
| -rw-r--r-- | runtime/doc/develop.txt | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/runtime/doc/develop.txt b/runtime/doc/develop.txt index a6ba7ee9c5..843e23ee54 100644 --- a/runtime/doc/develop.txt +++ b/runtime/doc/develop.txt @@ -157,28 +157,32 @@ with a {thing} that groups functions under a common concept). Use existing common {action} names if possible: add Append to, or insert into, a collection - get Get a thing (or subset of things by some query) - set Set a thing + get Get a thing (or group of things by query) + set Set a thing (or group of things) del Delete a thing (or group of things) list Get all things Use consistent names for {thing} in all API functions. E.g. a buffer is called "buf" everywhere, not "buffer" in some places and "buf" in others. -Example: `nvim_get_current_line` acts on the global editor state; the common -{action} "get" is used but {thing} is omitted. +Example: + `nvim_get_current_line` acts on the global editor state; the common + {action} "get" is used but {thing} is omitted. -Example: `nvim_buf_add_highlight` acts on a `Buffer` object (the first -parameter) and uses the common {action} "add". +Example: + `nvim_buf_add_highlight` acts on a `Buffer` object (the first parameter) + and uses the common {action} "add". -Example: `nvim_list_bufs` operates in a global context (first parameter is -_not_ a Buffer). The common {action} "list" indicates that it lists all -bufs (plural) in the global context. +Example: + `nvim_list_bufs` operates in a global context (first parameter is not + a Buffer). The common {action} "list" indicates that it lists all bufs + (plural) in the global context. Use this template to name new API events: nvim_{thing}_{event}_event -Example: `nvim_buf_changedtick_event`. +Example: + `nvim_buf_changedtick_event` API-CLIENT *dev-api-client* |