From 0b74b337670e1390030455203cff9353ef875027 Mon Sep 17 00:00:00 2001 From: Christopher Hoelter Date: Thu, 31 Aug 2023 16:07:47 -0500 Subject: [PATCH] Added typescript highlight groups. 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. --- lua/nord/groups.lua | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/lua/nord/groups.lua b/lua/nord/groups.lua index fc8ab2a..01fd2e0 100644 --- a/lua/nord/groups.lua +++ b/lua/nord/groups.lua @@ -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" }, @@ -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" }, @@ -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" },