feat(lsp): disable semantic tokens in Dockerfile and JS files

This commit is contained in:
2023-04-14 01:53:41 +01:00
parent 98c0d16b23
commit e4f9e00262
2 changed files with 10 additions and 0 deletions

View File

@@ -31,6 +31,11 @@
(defun siren-dockerfile-mode-setup ()
"Shared setup for both `dockerfile-mode' and `dockerfile-ts-mode'."
;; 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)
(lsp-format-buffer-on-save-mode +1)
(when (fboundp 'flycheck-select-checker)

View File

@@ -37,6 +37,11 @@
:preface
(defun siren-lsp-js-mode-setup ()
;; 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-deferred)
(lsp-format-buffer-on-save-mode)))