From b87fbb4f46b59b0bfe2193535e25de42180ca4b6 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 4 Nov 2026 15:11:30 +0000 Subject: [PATCH] fix colors in native lsp --- nvim/lua/darcula/setup/200_lsp.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nvim/lua/darcula/setup/200_lsp.lua b/nvim/lua/darcula/setup/200_lsp.lua index abe37e7..6b82b58 100644 --- a/nvim/lua/darcula/setup/200_lsp.lua +++ b/nvim/lua/darcula/setup/200_lsp.lua @@ -24,6 +24,12 @@ end local symbols = require("darcula.utils.symbols") local utils = require("darcula.utils") +-- coc.nvim paints no semantic-token layer, so its colors come from treesitter alone. +-- Neovim's semantic tokens (priority 125) outrank treesitter (100) and recolor +-- identifiers (ALL_CAPS constants, class names, ...), so disable them to keep the +-- native path rendering exactly like coc. +vim.lsp.semantic_tokens.enable(false) + vim.diagnostic.config( { float = {