refactor(haskell): move +lsp setup to config.el

This commit is contained in:
Itai Y. Efrat 2021-09-15 01:54:56 +03:00
parent 11f7b9b41a
commit 7d42c60f5a
2 changed files with 7 additions and 12 deletions

View file

@ -1,8 +0,0 @@
;;; lang/haskell/+lsp.el -*- lexical-binding: t; -*-
(use-package! lsp-haskell
:after lsp-mode
:preface (add-hook 'haskell-mode-local-vars-hook #'lsp!)
:config
;; Does some strange indentation if it pastes in the snippet
(setq-hook! 'haskell-mode-hook yas-indent-line 'fixed))

View file

@ -43,7 +43,10 @@
"H" #'haskell-hide-toggle-all))
;;
;;; Backends
(when (featurep! +lsp) (load! "+lsp"))
(use-package! lsp-haskell
:when (featurep! +lsp)
:after lsp-mode
:preface (add-hook 'haskell-mode-local-vars-hook #'lsp!)
:config
;; Does some strange indentation if it pastes in the snippet
(setq-hook! 'haskell-mode-hook yas-indent-line 'fixed))