feat(emacs): minor haskell and lsp improvements

This commit is contained in:
Flinner Yuu 2022-04-11 22:41:14 +03:00
parent 9d694c4daa
commit 7dbda566e8
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
1 changed files with 7 additions and 3 deletions

View File

@ -1416,7 +1416,7 @@ Lsp UI
:custom
(lsp-ui-peek-always-show t)
(lsp-ui-doc-mode t)
(lsp-ui-sideline-show-hover t)
(lsp-ui-sideline-show-hover nil)
;; (lsp-ui-doc-enable nil)
:bind
(:map lsp-ui-mode-map
@ -1625,6 +1625,10 @@ Auto format
#+end_src
*** Haskell
#+begin_src emacs-lisp
(use-package haskell-mode :defer t)
#+end_src
#+begin_src emacs-lisp
(use-package lsp-haskell
:defer t
@ -1640,8 +1644,8 @@ Auto format
(haskell-mode . my/font/pretty-lambdas-haskell)
:config
(haskell-indentation-mode -1)
;; (add-hook 'before-save-hook 'lsp-format-buffer)
;; :custom (haskell-stylish-on-save t)
(add-hook 'before-save-hook 'lsp-format-buffer)
:custom (haskell-stylish-on-save t)
)
#+end_src