doomemacs/modules/lang/haskell/+lsp.el

15 lines
483 B
EmacsLisp
Raw Normal View History

2019-02-23 03:20:45 +11:00
;;; lang/haskell/+lsp.el -*- lexical-binding: t; -*-
(use-package! lsp-haskell
: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
(when IS-MAC
(setq lsp-haskell-process-path-hie "hie-wrapper"))
2019-02-23 03:20:45 +11:00
;; Does some strange indentation if it pastes in the snippet
(setq-hook! 'haskell-mode-hook yas-indent-line 'fixed)
(when (featurep! +ghcide)
(setq lsp-haskell-process-path-hie "ghcide"
lsp-haskell-process-args-hie nil)))