add treesitter comment keywords lhaegele
authorLukas Hägele <lukas.haegele93@web.de>
Sun, 18 Oct 2026 13:10:00 +0000 (15:10 +0200)
committerLukas Hägele <lukas.haegele93@web.de>
Sun, 18 Oct 2026 13:10:00 +0000 (15:10 +0200)
lua/nord/theme.lua

index ba1e66ed48afdbd2f75aa22d47625783db0ac912..87214a705c1ac1b1574a4ad8dfc59ad11ffef0cb 100644 (file)
@@ -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 }