about summary refs log tree commit diff
path: root/fnl/nvrc
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-05-11 21:55:34 +0900
committersefidel <contact@sefidel.net>2024-05-11 21:55:40 +0900
commitc86a7e3668b67d29988eb4d4feb2083e5c0094a7 (patch)
tree4996019a2725c36f56924441e00831cfb142cf36 /fnl/nvrc
parent2fb4d5c3767935551f13a3cf1fa9f4814014ee8f (diff)
downloadnvimrc-c86a7e3668b67d29988eb4d4feb2083e5c0094a7.tar.gz
nvimrc-c86a7e3668b67d29988eb4d4feb2083e5c0094a7.zip
fix(packs/treesitter): fix tree-sitter-comment highlighting
* This commit fixes the comment highlighting being overridden by LSP's
  semantic tokens highlight.
Diffstat (limited to 'fnl/nvrc')
-rw-r--r--fnl/nvrc/colors.fnl6
1 files changed, 3 insertions, 3 deletions
diff --git a/fnl/nvrc/colors.fnl b/fnl/nvrc/colors.fnl
index b3f2602..85df856 100644
--- a/fnl/nvrc/colors.fnl
+++ b/fnl/nvrc/colors.fnl
@@ -45,6 +45,8 @@
   (highlight! :DiagnosticWarn {:fg (. colors :yellow)})
   (highlight! :DiagnosticInfo {:fg (. colors :green)})
   (highlight! :DiagnosticHint {:fg (. colors :graphite)})
+  ; https://github.com/stsewd/tree-sitter-comment/issues/22
+  (highlight! "@lsp.type.comment" {})
 
   (highlight! :DiagnosticSignError {:fg (. colors :red) :bg (. colors :light_bg)})
   (highlight! :DiagnosticSignWarn {:fg (. colors :yellow) :bg (. colors :light_bg)})
@@ -59,8 +61,6 @@
   ; Treesitter extensions
   (highlight! "@text.note" {:fg (. colors :skyblue) :bold true})
   (highlight! "@text.warning" {:fg (. colors :yellow) :bold true})
-  (highlight! "@text.danger" {:fg (. colors :red) :bold true})
-
-  )
+  (highlight! "@text.danger" {:fg (. colors :red) :bold true}))
 
 colors