mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
feat(lsp): disable semantic tokens in Dockerfile and JS files
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user