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