[nvim] func to add descriptions to keymap opts tables
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user