2019-02-23 03:20:45 +11:00
|
|
|
;;; lang/haskell/+lsp.el -*- lexical-binding: t; -*-
|
|
|
|
|
2019-07-23 12:44:03 +02:00
|
|
|
(use-package! lsp-haskell
|
2020-03-29 18:28:20 -04:00
|
|
|
:after lsp-clients
|
2020-03-31 13:45:32 -04:00
|
|
|
:preface (add-hook 'haskell-mode-local-vars-hook #'lsp!)
|
2019-02-23 03:20:45 +11:00
|
|
|
:config
|
2019-04-07 16:46:59 -04:00
|
|
|
(when IS-MAC
|
|
|
|
(setq lsp-haskell-process-path-hie "hie-wrapper"))
|
2020-03-29 18:28:20 -04:00
|
|
|
(when (featurep! +ghcide)
|
|
|
|
(setq lsp-haskell-process-path-hie "ghcide"
|
2020-04-08 15:29:29 -04:00
|
|
|
lsp-haskell-process-args-hie nil))
|
|
|
|
;; Does some strange indentation if it pastes in the snippet
|
|
|
|
(setq-hook! 'haskell-mode-hook yas-indent-line 'fixed))
|