From f0814fa0ec927adfad444b5c1d859a25753810a1 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 2 Sep 2023 14:31:36 +0900 Subject: feat(packs/lspconfig)!: globally disable semantic highlighting --- fnl/nvrc/packs/lspconfig.fnl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fnl/nvrc/packs/lspconfig.fnl b/fnl/nvrc/packs/lspconfig.fnl index 8add874..7bd3b23 100644 --- a/fnl/nvrc/packs/lspconfig.fnl +++ b/fnl/nvrc/packs/lspconfig.fnl @@ -1,3 +1,6 @@ +(import-macros {: ag! + : au!} :nvrc.macro.event) + (local lsp (require :lspconfig)) (local {: merge} (require :nvrc.utils)) (local colors (require :nvrc.colors)) @@ -31,6 +34,12 @@ :virtual_text {:prefix "-"} :signs false})) +;; Disable semantic hl globally, as it usually results in worse hl +(ag! global-no-semantic-hl + (au! LspAttach * (fn [args] + (local client (vim.lsp.get_client_by_id args.data.client_id)) + (set client.server_capabilities.semanticTokensProvider nil)))) + ;; rust-analyzer is managed via rust-tools.nvim (init_lsp :hls) (init_lsp :gopls) -- cgit 1.4.1