feat(gs/emacs): Run hlint after lsp
Change-Id: I57413e181354014eee2da7564ac3676b840dee94 Reviewed-on: https://cl.tvl.fyi/c/depot/+/913 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
parent
020f6081cd
commit
8545a61775
1 changed files with 5 additions and 0 deletions
|
@ -694,6 +694,11 @@
|
|||
(defun +grfn/haskell-mode-setup ()
|
||||
(interactive)
|
||||
(flymake-mode -1)
|
||||
(add-to-list 'flycheck-disabled-checkers 'haskell-ghc)
|
||||
|
||||
(flycheck-remove-next-checker 'lsp 'haskell-ghc)
|
||||
(flycheck-add-next-checker 'lsp '(warning . haskell-hlint))
|
||||
|
||||
;; If there’s a 'hie.sh' defined locally by a project
|
||||
;; (e.g. to run HIE in a nix-shell), use it…
|
||||
(when-let ((project-dir (locate-dominating-file default-directory "hie.sh")))
|
||||
|
|
Loading…
Reference in a new issue