Skip to content

Commit

Permalink
fix(vimdoc): missing lz.n.State field
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Aug 28, 2024
1 parent 9cee362 commit a1d34cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions doc/lz.n.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,16 @@ lz.n.handler.State *lz.n.handler.State*

Fields: ~
{insert} (fun(key:string,plugin:lz.n.Plugin)|fun(plugin:lz.n.Plugin))
Insert a plugin (optionally, by key).
Insert a plugin (optionally, by key).
{del} (fun(plugin_name:string,callback?:fun(key:string)))
Remove a plugin by its name.
Remove a plugin by its name.
{has_pending_plugins} (fun(key?:string):boolean)
Check if there are pending plugins (optionally, by key)
{lookup_plugin} (fun(plugin_name:string):lz.n.Plugin)
Lookup a plugin by its name.
Check if there are pending plugins (optionally, by key)
{lookup_plugin} (fun(plugin_name:string):lz.n.Plugin|nil)
Lookup a plugin by its name.
{each_pending} (fun(key:string,callback:fun(plugin:lz.n.Plugin)):string[]|fun(callback:fun(plugin:lz.n.Plugin)):string[])
Safely apply a callback to all pending plugins
(optionally, by key).


vim:tw=78:ts=8:noet:ft=help:norl:
2 changes: 1 addition & 1 deletion lua/lz/n/handler/state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ end
---@field has_pending_plugins fun(key?: string):boolean
---
---Lookup a plugin by its name.
---@field lookup_plugin fun(plugin_name: string):lz.n.Plugin?
---@field lookup_plugin fun(plugin_name: string):(lz.n.Plugin | nil)
---
---Safely apply a callback to all pending plugins
---(optionally, by key).
Expand Down

0 comments on commit a1d34cd

Please sign in to comment.