mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
docs(lua): the keyset nilocalypse
This is needed to give recent LuaLS the right idea about optional fields.
This commit is contained in:
@ -295,7 +295,7 @@ local function get_api_keysets_meta()
|
||||
for _, k in ipairs(keysets) do
|
||||
local params = {}
|
||||
for _, key in ipairs(k.keys) do
|
||||
table.insert(params, {key, api_type(k.types[key] or 'any')})
|
||||
table.insert(params, {key..'?', api_type(k.types[key] or 'any')})
|
||||
end
|
||||
ret[k.name] = {
|
||||
signature = 'NA',
|
||||
|
Reference in New Issue
Block a user