From a10f797d4228c62c678a58e2533564fca779a568 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 1 Aug 2023 01:37:03 +0100 Subject: [PATCH] fix(language/typescript): disable lsp-semantic-tokens They are laggy and annoying. --- modules/languages/siren-typescript.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/languages/siren-typescript.el b/modules/languages/siren-typescript.el index 2764f50..fba207f 100644 --- a/modules/languages/siren-typescript.el +++ b/modules/languages/siren-typescript.el @@ -36,6 +36,11 @@ indent-level width tab-width width)) + ;; Disable semantic tokens as it typically causes an annoying delay with the + ;; syntax highlighting as you type. Essentially all new text is a very faded + ;; out grey color for the first 1-2 seconds as you type. + (setq-local lsp-semantic-tokens-enable nil) + (lsp-format-buffer-on-save-mode t) (lsp-deferred) (flycheck-mode t)))