Skip to content

Commit

Permalink
Added typescript highlight groups.
Browse files Browse the repository at this point in the history
This includes treesitter groups that target typescript and
typescriptreact. Some of the highlights were slightly modified or added
to align more with the vscode nord theme colors for typescript.
  • Loading branch information
hoelter committed Aug 31, 2023
1 parent 6daa58a commit 0b74b33
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions lua/nord/groups.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,19 @@ M.setup = function()
-- hi! link TSAnnotation Annotation
-- hi! link TSStructure Structure

-- Treesitter LSP
-- typescript and typescriptreact
['@type.typescript'] = { link = "NordFgGreenBlue7" },
['@lsp.type.interface.typescript'] = { link = "NordFgGreenBlue7" },
['@lsp.typemod.interface.declaration.typescript'] = { link = "NordFgGreenBlue7" },
['@lsp.typemod.type.declaration.typescript'] = { link = "NordFgGreenBlue7" },
['@punctuation.special.typescript'] = { link = "NordFgArcticBlue9" },
['@lsp.type.type.typescript'] = { link = "NordFgGreenBlue7" },
['@lsp.type.type.typescriptreact'] = { link = "NordFgGreenBlue7" },
['@lsp.type.enum.typescriptreact'] = { link = "NordFgGreenBlue7" },
['@lsp.type.interface.typescriptreact'] = { link = "NordFgGreenBlue7" },


-- Language specic groups
asciidocAttributeEntry = { link = "NordFgOceanBlue10" },
asciidocAttributeList = { link = "NordFgOceanBlue10" },
Expand Down Expand Up @@ -282,6 +295,7 @@ M.setup = function()
htmlSpecialChar = { link = "SpecialChar" },
htmlTag = { link = "Keyword" },
htmlTagN = { link = "htmlTag" },
htmlTagName = { link = "htmlTag" },

javaDocTags = { link = "NordFgGreenBlue7" },
javaCommentTitle = { link = "Comment" },
Expand Down Expand Up @@ -392,6 +406,47 @@ M.setup = function()
sqlKeyword = { link = "Keyword" },
sqlSpecial = { link = "Keyword" },

tsxAttrib = { link = "NordFgGreenBlue7" },
tsxEqual = { link = "Operator" },
tsxIntrinsicTagName = { link = "htmlTag" },
tsxTagName = { link = "NordFgArcticBlue9" },
tsxCloseString = { link = "NordFgArcticBlue9" },

typescriptOperator = { link = "Operator" },
typescriptBinaryOp = { link = "Operator" },
typescriptAssign = { link = "Operator" },
typescriptMember = { link = "Identifier" },
typescriptDOMStorageMethod = { link = "Identifier" },
typescriptArrowFuncArg = { link = "Identifier" },
typescriptGlobal = { link = "typescriptClassName" },
typescriptBOMWindowProp = { link = "Function" },
typescriptArrowFuncDef = { link = "Function" },
typescriptAliasDeclaration = { link = "Function" },
typescriptPredefinedType = { link = "NordFgGreenBlue7" },
typescriptTypeReference = { link = "typescriptClassName" },
typescriptTypeAnnotation = { link = "Structure" },
typescriptDocNamedParamType = { link = "SpecialComment" },
typescriptDocNotation = { link = "Keyword" },
typescriptDocTags = { link = "Keyword" },
typescriptImport = { link = "Keyword" },
typescriptExport = { link = "Keyword" },
typescriptTry = { link = "Keyword" },
typescriptVariable = { link = "Keyword" },
typescriptBraces = { link = "NordFgArcticBlue9" },
typescriptObjectLabel = { link = "NordFgIceBlue8" },
typescriptCall = { link = "Normal" },
typescriptClassHeritage = { link = "typescriptClassName" },
typescriptFuncTypeArrow = { link = "Structure" },
typescriptMemberOptionality = { link = "Structure" },
typescriptNodeGlobal = { link = "typescriptGlobal" },
typescriptTypeBracket = { link = "NordFgIceBlue8" },
typescriptParens = { link = "NordFgOceanBlue10" },
typescriptTernaryOp = { link = "NordFgArcticBlue9" },
-- typescriptBlock = { link = "NordFgArcticBlue9" },
typescriptIndexExpr = { link = "NordFgArcticBlue9" },
-- typescriptProperty = { link = "NordFgArcticBlue9" },
typescriptUnaryOp = { link = "NordFgArcticBlue9" },

vimAugroup = { link = "NordFgGreenBlue7" },
vimMapRhs = { link = "NordFgGreenBlue7" },
vimNotation = { link = "NordFgGreenBlue7" },
Expand Down

0 comments on commit 0b74b33

Please sign in to comment.