From cebac374bb6a0250aa2eb5741bd8266cee0f99be Mon Sep 17 00:00:00 2001 From: shaunsingh <71196912+shaunsingh@users.noreply.github.com> Date: Sun, 16 May 2021 01:01:22 -0400 Subject: [PATCH] Update theme.lua --- lua/nord/theme.lua | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/lua/nord/theme.lua b/lua/nord/theme.lua index fa1ea5c..844aacb 100644 --- a/lua/nord/theme.lua +++ b/lua/nord/theme.lua @@ -181,38 +181,47 @@ theme.loadTreeSitter = function () -- TreeSitter highlight groups local treesitter = { - TSAnnotation = { fg = nord.orange }, -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information. - TSAttribute = { fg = nord.accent }, -- (unstable) TODO: docs - TSBoolean= { fg = nord.orange }, -- For booleans. + TSAnnotation = { fg = nord.orange }, -- For C++/Dart attributes, annotations thatcan be attached to the code to denote some kind of meta information. TSCharacter= { fg = nord.orange }, -- For characters. TSConstructor = { fg = nord.purple }, -- For constructor calls and definitions: `= { }` in Lua, and Java constructors. TSConstant = { fg = nord.accent }, -- For constants + TSFloat = { fg = nord.yellow }, -- For floats + TSNamespace = { fg = nord.yellow }, -- For identifiers referring to modules and namespaces. + TSNumber = { fg = nord.orange }, -- For all number + TSString = { fg = nord.green }, -- For strings. + + --TSAnnotation = { fg = nord.red }, -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information. + TSAttribute = { fg = nord.yellow }, -- (unstable) TODO: docs + TSBoolean= { fg = nord.orange }, -- For booleans. + --TSCharacter= { fg = nord.orange }, -- For characters. + --TSConstructor = { fg = nord.purple }, -- For constructor calls and definitions: `= { }` in Lua, and Java constructors. + --TSConstant = { fg = nord.yellow }, -- For constants TSConstBuiltin = { fg = nord.blue }, -- For constant that are built in the language: `nil` in Lua. TSConstMacro = { fg = nord.blue }, -- For constants that are defined by macros: `NULL` in C. TSError = { fg = nord.error }, -- For syntax/parser errors. TSException = { fg = nord.yellow }, -- For exception related keywords. - TSField = { fg = nord.accent }, -- For fields. - TSFloat = { fg = nord.yellow }, -- For floats. - TSFuncMacro = { fg = nord.purple }, -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust. + TSField = { fg = nord.gray }, -- For fields. + --TSFloat = { fg = nord.red }, -- For floats. + TSFuncMacro = { fg = nord.blue }, -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust. TSInclude = { fg = nord.cyan }, -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua. TSLabel = { fg = nord.red }, -- For labels: `label:` in C and `:label:` in Lua. TSNamespace = { fg = nord.yellow }, -- For identifiers referring to modules and namespaces. --TSNone = { }, -- TODO: docs - TSNumber = { fg = nord.orange }, -- For all numbers - TSOperator = { fg = nord.purple }, -- For any operator: `+`, but also `->` and `*` in C. + --TSNumber = { fg = nord.orange }, -- For all numbers + TSOperator = { fg = nord.cyan }, -- For any operator: `+`, but also `->` and `*` in C. TSParameter = { fg = nord.paleblue }, -- For parameters of a function. TSParameterReference= { fg = nord.paleblue }, -- For references to parameters of a function. TSProperty = { fg = nord.paleblue }, -- Same as `TSField`. TSPunctDelimiter = { fg = nord.cyan }, -- For delimiters ie: `.` TSPunctBracket = { fg = nord.cyan }, -- For brackets and parens. TSPunctSpecial = { fg = nord.cyan }, -- For special punctutation that does not fall in the catagories before. - TSString = { fg = nord.green }, -- For strings. - TSStringRegex = { fg = nord.green }, -- For regexes. + --TSString = { fg = nord.green }, -- For strings. + TSStringRegex = { fg = nord.blue }, -- For regexes. TSStringEscape = { fg = nord.disabled }, -- For escape characters within a string. TSSymbol = { fg = nord.yellow }, -- For identifiers referring to symbols or atoms. TSType = { fg = nord.purple }, -- For types. TSTypeBuiltin = { fg = nord.purple }, -- For builtin types. - TSTag = { fg = nord.purple }, -- Tags like html tag names. + TSTag = { fg = nord.red }, -- Tags like html tag names. TSTagDelimiter = { fg = nord.yellow }, -- Tag delimiter like `<` `>` `/` TSText = { fg = nord.text }, -- For strings considered text in a markup language. TSTextReference = { fg = nord.yellow }, -- FIXME @@ -221,7 +230,8 @@ theme.loadTreeSitter = function () TSStrike = { }, -- For strikethrough text. TSTitle = { fg = nord.paleblue, bg = nord.none, style = 'bold' }, -- Text that is part of a title. TSLiteral = { fg = nord.fg }, -- Literal text. - TSURI = { fg = nord.link }, -- Any URI like a link or email. + TSURI = { fg = nord.link }, -- Any URI like a link or email. TSAnnotation = { fg = nord.red }, -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information. + } treesitter.TSComment= { fg = nord.comments } -- 2.39.5