[nvim] func to add descriptions to keymap opts tables

This commit is contained in:
2025-03-16 21:35:17 +03:00
parent 836a80c332
commit de04ddd511
2 changed files with 15 additions and 4 deletions

View File

@@ -6,3 +6,14 @@ function Contains(list, element)
end
return false
end
---comment
---@param list table
---@param key string
---@param value any
---@return table
function Append(list, key, value)
local new_list = {unpack(list)}
new_list[key] = value
return new_list
end