From 7ffaf407c3a8f5d0ef8dfe923b4071637bb4a7f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lukas=20H=C3=A4gele?= Date: Sun, 18 Oct 2026 15:10:00 +0200 Subject: [PATCH] add treesitter comment keywords --- lua/nord/theme.lua | 7 +++++++ 1 file changed, 7 insertions(+) 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 } -- 2.39.5