init.el: Update emacs config for Haskell
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
ff7b923738
commit
04ded4c85b
1 changed files with 10 additions and 6 deletions
16
init.el
16
init.el
|
@ -178,15 +178,20 @@
|
|||
:ensure t)
|
||||
|
||||
;; For Haskell & Rust Support
|
||||
(use-package haskell-mode
|
||||
:ensure t
|
||||
:custom
|
||||
(haskell-stylish-on-save t)
|
||||
(haskell-process-suggest-remove-import-lines t))
|
||||
(use-package lsp-mode
|
||||
:defer t
|
||||
:ensure t
|
||||
:commands lsp)
|
||||
(use-package lsp-ui
|
||||
:commands lsp-ui-mode
|
||||
:config
|
||||
((add-hook 'lsp-mode-hook 'lsp-ui-mode)
|
||||
(add-hook 'haskell-mode-hook 'flycheck-mode)))
|
||||
:requires lsp-mode
|
||||
:hook
|
||||
((lsp-mode-hook . lsp-ui-mode)
|
||||
(haskell-mode-hook . flycheck-mode)))
|
||||
(use-package company-lsp
|
||||
:commands company-lsp)
|
||||
|
||||
|
@ -194,8 +199,7 @@
|
|||
:defer t
|
||||
:ensure t
|
||||
:config
|
||||
((add-hook 'haskell-mode-hook #'lsp)
|
||||
(setq lsp-haskell-process-path-hie "~/.local/bin/hie-wrapper")))
|
||||
(setq lsp-haskell-process-path-hie "hie-wrapper"))
|
||||
|
||||
(use-package rust-mode
|
||||
:defer t
|
||||
|
|
Loading…
Reference in a new issue