Skip to content

Commit efbf5f4

Browse files
committed
fix(keys): update keys function signature to include LazyKeysSpec arguments
1 parent 306a055 commit efbf5f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/lazy.nvim.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ SPEC LAZY LOADING *lazy.nvim-🔌-plugin-spec-spec-lazy-loading*
347347
fun(self:LazyPlugin, ft:string[]):string[]
348348

349349
keys string? or string[] or LazyKeysSpec[] or Lazy-load on key mapping
350-
fun(self:LazyPlugin, keys:string[]):(string \| LazyKeysSpec)[]
350+
fun(self:LazyPlugin, keys:(string \| LazyKeysSpec)[]):(string \| LazyKeysSpec)[]
351351
--------------------------------------------------------------------------------------------------------------------
352352
Refer to the Lazy Loading <./lazy_loading.md> section for more information.
353353

lua/lazy/types.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
---@field event? string[]|string|LazyEventSpec[]|fun(self:LazyPlugin, event:string[]):string[]
7373
---@field cmd? string[]|string|fun(self:LazyPlugin, cmd:string[]):string[]
7474
---@field ft? string[]|string|fun(self:LazyPlugin, ft:string[]):string[]
75-
---@field keys? string|string[]|LazyKeysSpec[]|fun(self:LazyPlugin, keys:string[]):((string|LazyKeys)[])
75+
---@field keys? string|string[]|LazyKeysSpec[]|fun(self:LazyPlugin, keys:(string|LazyKeysSpec)[]):((string|LazyKeysSpec)[])
7676
---@field module? false
7777

7878
---@class LazyPluginSpec: LazyPluginBase,LazyPluginSpecHandlers,LazyPluginHooks,LazyPluginRef

0 commit comments

Comments
 (0)