diff options
author | Alan Pearce | 2019-10-08 16:34:10 +0200 |
---|---|---|
committer | Alan Pearce | 2019-10-09 11:05:45 +0200 |
commit | 583bb272fe7002fe3a21f4ce2b5a2025e855e269 (patch) | |
tree | c8c43b02e64a5b5d58f678cfc5a6158b3d9f7216 /user/emacs | |
parent | c94b5ae2244f87d051d55fcfbdbfa48e0a3659f6 (diff) | |
download | nixfiles-583bb272fe7002fe3a21f4ce2b5a2025e855e269.tar.lz nixfiles-583bb272fe7002fe3a21f4ce2b5a2025e855e269.tar.zst nixfiles-583bb272fe7002fe3a21f4ce2b5a2025e855e269.zip |
Emacs: setup flycheck like flymake and prefer it in lsp-ui
Diffstat (limited to 'user/emacs')
-rw-r--r-- | user/emacs/.emacs.d/init.el | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el index d4470242..21b91c43 100644 --- a/user/emacs/.emacs.d/init.el +++ b/user/emacs/.emacs.d/init.el @@ -707,9 +707,30 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (use-package flymake :custom ((flymake-error-bitmap '(left-vertical-bar compilation-error)) (flymake-warning-bitmap '(left-vertical-bar compilation-warning)))) -(use-package flymake-diagnostic-at-point - :custom ((flymake-diagnostic-at-point-diagnostic-function #'flymake-diagnostic-at-point-display-minibuffer)) - :ghook '(flymake-mode-hook)) +(use-package flycheck + :custom ((flycheck-highlighting-mode 'sexps)) + :config (progn + (flycheck-define-error-level 'error + :severity 100 + :compilation-level 2 + :overlay-category 'flycheck-error-overlay + :fringe-bitmap 'left-vertical-bar + :fringe-face 'flycheck-fringe-error + :error-list-face 'flycheck-error-list-error) + (flycheck-define-error-level 'warning + :severity 10 + :compilation-level 1 + :overlay-category 'flycheck-warning-overlay + :fringe-bitmap 'left-vertical-bar + :fringe-face 'flycheck-fringe-warning + :warning-list-face 'flycheck-error-list-warning) + (flycheck-define-error-level 'info + :severity -10 + :compilation-level 0 + :overlay-category 'flycheck-info-overlay + :fringe-bitmap 'left-vertical-bar + :fringe-face 'flycheck-fringe-info + :info-list-face 'flycheck-error-list-info))) (use-package lsp-mode :ghook ('(typescript-mode-hook @@ -725,7 +746,7 @@ _p_rev _u_pper _=_: upper/lower _r_esolve :gfhook 'lsp--flymake-setup :custom ((lsp-auto-guess-root t) (lsp-auto-configure nil) - (lsp-prefer-flymake t) + (lsp-prefer-flymake nil) (lsp-enable-symbol-highlighting nil)) :config (progn (add-to-list 'lsp-language-id-configuration '(js-mode . "javascript")))) |