From 6b672dbe506948e395171479a0f307e3637dadfc Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sun, 9 Feb 2025 12:58:58 +0100 Subject: [PATCH] fix(treesitter): enable semantic highlighting in comments --- lua/plugins/treesitter.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 996fbe5..b1ffbad 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -35,10 +35,6 @@ return { vim.opt.foldmethod = "expr" vim.opt.foldexpr = "nvim_treesitter#foldexpr()" - -- Disable LSP semantic highlighting for comments because it will otherwise - -- override highlights from `comment`. - vim.api.nvim_set_hl(0, "@lsp.type.comment", {}) - -- To set the priority of semantic highlighting lower than treesitter (100), -- uncomment the line below: -- vim.highlight.priorities.semantic_tokens = 99