From: shaunsingh <71196912+shaunsingh@users.noreply.github.com> Date: Sun, 16 May 2021 04:50:13 +0000 (-0400) Subject: Update theme.lua X-Git-Url: https://git.lhaegele.de/?a=commitdiff_plain;h=5ed1edf195fd0f0c631fe0d7001eb20f4f694de9;p=nvim%2Fnord.nvim.git Update theme.lua --- diff --git a/lua/nord/theme.lua b/lua/nord/theme.lua index 8a91963..a760f84 100644 --- a/lua/nord/theme.lua +++ b/lua/nord/theme.lua @@ -49,6 +49,13 @@ theme.loadSyntax = function () markdownH2Delimiter = { fg = nord.red }, markdownH3Delimiter = { fg = nord.green }, } + + syntax.Comment = {fg = nord.comments} + syntax.Conditional = {fg = nord.purple} -- normal if, then, else, endif, switch, etc. + syntax.Keyword = {fg = nord.purple} -- normal for, do, while, etc. + syntax.Repeat = {fg = nord.purple} -- normal any other keyword + syntax.Function = {fg = nord.blue} + Identifier = {fg = nord.gray}; -- any variable name return syntax @@ -216,6 +223,18 @@ theme.loadTreeSitter = function () TSLiteral = { fg = nord.fg }, -- Literal text. TSURI = { fg = nord.link }, -- Any URI like a link or email. } + + treesitter.TSComment= { fg = nord.comments } + treesitter.TSConditional = { fg = nord.purple } -- For keywords related to conditionnals. + treesitter.TSKeyword = { fg = nord.purple } -- For keywords that don't fall in previous categories. + treesitter.TSRepeat = { fg = nord.purple } -- For keywords related to loops. + treesitter.TSKeywordFunction = { fg = nord.purple } + treesitter.TSFunction = { fg = nord.blue } -- For fuction (calls and definitions). + treesitter.TSMethod = { fg = nord.blue } -- For method calls and definitions. + treesitter.TSFuncBuiltin = { fg = nord.cyan } + treesitter.TSVariable = { fg = nord.gray } -- Any variable name that does not have another highlight. + treesitter.TSVariableBuiltin = { fg = nord.gray } + return treesitter end