mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 12:56:46 +00:00
style(types): add optional return value for LazyKeysSpec
rhs (#1924)
## Description <!-- Describe the big picture of your changes to communicate to the maintainers why we should accept this pull request. --> when `expr=true` the rhs function should return a string. example ```lua { keys = { { '<leader>j', function() return require('dial.map').inc_normal() end, expr = true, desc = 'Increment value', } } } ``` ## Related Issue(s) <!-- If this PR fixes any issues, please link to the issue here. - Fixes #<issue_number> --> ## Screenshots <!-- Add screenshots of the changes if applicable. -->
This commit is contained in:
parent
e5e9bf4821
commit
a8c6db5da7
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ local Util = require("lazy.core.util")
|
|||
|
||||
---@class LazyKeysSpec: LazyKeysBase
|
||||
---@field [1] string lhs
|
||||
---@field [2]? string|fun()|false rhs
|
||||
---@field [2]? string|fun():string?|false rhs
|
||||
---@field mode? string|string[]
|
||||
|
||||
---@class LazyKeys: LazyKeysBase
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue