mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 19:35:37 +00:00
docs: update dev-api to include "create"
This commit is contained in:
@@ -243,12 +243,13 @@ If the function acts on an object then {thing} is the name of that object
|
|||||||
with a {thing} that groups functions under a common concept).
|
with a {thing} that groups functions under a common concept).
|
||||||
|
|
||||||
Use existing common {action} names if possible:
|
Use existing common {action} names if possible:
|
||||||
add Append to, or insert into, a collection
|
add Append to, or insert into, a collection
|
||||||
del Delete a thing (or group of things)
|
create Create a new thing
|
||||||
exec Execute code
|
del Delete a thing (or group of things)
|
||||||
get Get a thing (or group of things by query)
|
exec Execute code
|
||||||
list Get all things
|
get Get a thing (or group of things by query)
|
||||||
set Set a thing (or group of things)
|
list Get all things
|
||||||
|
set Set a thing (or group of things)
|
||||||
|
|
||||||
Use consistent names for {thing} in all API functions. E.g. a buffer is called
|
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.
|
"buf" everywhere, not "buffer" in some places and "buf" in others.
|
||||||
|
|||||||
Reference in New Issue
Block a user