symbols: Add TypeParameter symbol and highlight

This commit is contained in:
simrat39
2021-04-22 15:19:37 -07:00
parent 4395434980
commit e074433710

View File

@@ -24,13 +24,14 @@ M.Null = {icon = "NULL", hl = "TSType"}
M.EnumMember = {icon = "", hl = "TSField"} M.EnumMember = {icon = "", hl = "TSField"}
M.Struct = {icon = "𝓢", hl = "TSType"} M.Struct = {icon = "𝓢", hl = "TSType"}
M.Event = {icon = "🗲", hl = "TSType"} M.Event = {icon = "🗲", hl = "TSType"}
M.Operator = {icon = "𝒯", hl = "TSOperator"} M.Operator = {icon = "+", hl = "TSOperator"}
M.TypeParameter = {icon = "𝙏", hl = "TSParameter"}
M.kinds = { M.kinds = {
"File", "Module", "Namespace", "Package", "Class", "Method", "Property", "File", "Module", "Namespace", "Package", "Class", "Method", "Property",
"Field", "Constructor", "Enum", "Interface", "Function", "Variable", "Field", "Constructor", "Enum", "Interface", "Function", "Variable",
"Constant", "String", "Number", "Boolean", "Array", "Object", "Key", "Null", "Constant", "String", "Number", "Boolean", "Array", "Object", "Key", "Null",
"EnumMember", "Struct", "Event", "Operator" "EnumMember", "Struct", "Event", "Operator", "TypeParameter"
} }
function M.icon_from_kind(kind) return M[M.kinds[kind]].icon end function M.icon_from_kind(kind) return M[M.kinds[kind]].icon end