From: Lukas Hägele Date: Sun, 18 Oct 2026 13:10:00 +0000 (+0200) Subject: add treesitter comment keywords X-Git-Url: https://git.lhaegele.de/?a=commitdiff_plain;h=refs%2Fheads%2Flhaegele;p=nvim%2Fnord.nvim.git add treesitter comment keywords --- diff --git a/lua/nord/theme.lua b/lua/nord/theme.lua index ba1e66e..87214a7 100644 --- a/lua/nord/theme.lua +++ b/lua/nord/theme.lua @@ -1,4 +1,5 @@ local nord = require("nord.colors") +local named_colors = require("nord.named_colors") local theme = {} @@ -352,6 +353,12 @@ theme.loadTreeSitter = function() treesitter.TSCharacter = { fg = nord.nord14_gui, style = italic } -- For characters. treesitter["@comment"] = { fg = nord.nord3_gui_bright, style = italic } + + treesitter["@comment.todo"] = { fg = named_colors.blue, style = italic } + treesitter["@comment.note"] = { fg = named_colors.green, style = italic } + treesitter["@comment.warning"] = { fg = named_colors.yellow, style = italic } + treesitter["@comment.info"] = { fg = named_colors.off_blue, style = italic } + treesitter["@conditional"] = { fg = nord.nord9_gui, style = italic } treesitter["@function"] = { fg = nord.nord8_gui, style = italic } treesitter["@method"] = { fg = nord.nord8_gui, style = italic }