From c86a7e3668b67d29988eb4d4feb2083e5c0094a7 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 11 May 2024 21:55:34 +0900 Subject: fix(packs/treesitter): fix tree-sitter-comment highlighting * This commit fixes the comment highlighting being overridden by LSP's semantic tokens highlight. --- fnl/nvrc/colors.fnl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fnl/nvrc') 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 -- cgit 1.4.1