From d5a9b17f8204e26b27c9e20f3cc66313798db99c Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Sun, 16 Apr 2023 16:11:37 +0200 Subject: [PATCH] Disable lsp-tailwindcss in scala-mode It creates strange issues when saving a file --- modules/editor/emacs/doom.d/config.el | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/modules/editor/emacs/doom.d/config.el b/modules/editor/emacs/doom.d/config.el index fcecbfa..f090e3b 100644 --- a/modules/editor/emacs/doom.d/config.el +++ b/modules/editor/emacs/doom.d/config.el @@ -5,28 +5,6 @@ doom-big-font (font-spec :family "MesloLGS Nerd Font Mono" :size 24) treemacs-git-mode 'extended) -;; Enable nice rendering of diagnostics like compile errors. -(use-package! flycheck - :init (global-flycheck-mode)) - -(use-package! lsp-mode - ;; Optional - enable lsp-mode automatically in scala files - ;; You could also swap out lsp for lsp-deffered in order to defer loading - :hook (scala-mode . lsp) - (lsp-mode . lsp-lens-mode) - :config - ;; Uncomment following section if you would like to tune lsp-mode performance according to - ;; https://emacs-lsp.github.io/lsp-mode/page/performance/ - ;; (setq gc-cons-threshold 100000000) ;; 100mb - ;; (setq read-process-output-max (* 1024 1024)) ;; 1mb - ;; (setq lsp-idle-delay 0.500) - ;; (setq lsp-log-io nil) - ;; (setq lsp-completion-provider :capf) - (setq lsp-prefer-flymake nil) - ;; Makes LSP shutdown the metals server when all buffers in the project are closed. - ;; https://emacs-lsp.github.io/lsp-mode/page/settings/mode/#lsp-keep-workspace-alive - (setq lsp-keep-workspace-alive nil)) - ; Workaround for "Error running timer: (void-function consult--ripgrep-builder)" (use-package! consult :config @@ -35,7 +13,8 @@ (use-package! lsp-tailwindcss :init (setq lsp-tailwindcss-add-on-mode t) - (setq lsp-tailwindcss-major-modes '(rjsx-mode web-mode html-mode css-mode typescript-mode typescript-tsx-mode tsx-ts-mode scala-mode)) + (setq lsp-tailwindcss-major-modes '(rjsx-mode web-mode html-mode css-mode typescript-mode typescript-tsx-mode tsx-ts-mode ;; scala-mode + )) (setq lsp-tailwindcss-experimental-class-regex [ [ "cls\\(([^)]*)\\)" "\"([^']*)\"" ] [ "cls\\s*:=\\s*\\(?([^,^\\n^\\)]*)" "\"([^']*)\"" ]]))