[Emacs] Haskell lsp stuff
This commit is contained in:
parent
eb18e13bf2
commit
206a656418
@ -2820,8 +2820,10 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
|
|||||||
haskell-mode-stylish-haskell-path "brittany"
|
haskell-mode-stylish-haskell-path "brittany"
|
||||||
haskell-mode-stylish-haskell-args '("-")))
|
haskell-mode-stylish-haskell-args '("-")))
|
||||||
(message "imalison:use-lsp-haskell: %s" imalison:use-lsp-haskell)
|
(message "imalison:use-lsp-haskell: %s" imalison:use-lsp-haskell)
|
||||||
(when imalison:use-lsp-haskell
|
(when t
|
||||||
(use-package lsp-haskell)
|
(require 'lsp)
|
||||||
|
(use-package lsp-haskell
|
||||||
|
:demand t)
|
||||||
(lsp-deferred)))
|
(lsp-deferred)))
|
||||||
(add-hook 'haskell-mode-hook 'imalison:haskell-mode))
|
(add-hook 'haskell-mode-hook 'imalison:haskell-mode))
|
||||||
:config
|
:config
|
||||||
@ -4016,11 +4018,16 @@ emr (emacs refactor) provides support for refactoring in many programming langua
|
|||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
|
(defun imalison:nix-develop-lsp-wrapper-function (argv)
|
||||||
|
(append
|
||||||
|
(append (list "nix" "develop" "-I" "." "--command")
|
||||||
|
argv)))
|
||||||
(setq lsp-prefer-flymake nil)
|
(setq lsp-prefer-flymake nil)
|
||||||
(use-package lsp-ui
|
(use-package lsp-ui
|
||||||
:config
|
:config
|
||||||
(add-hook 'lsp-mode-hook 'lsp-ui-mode))
|
(progn
|
||||||
(add-hook 'programming-mode-hook 'lsp)))
|
(add-hook 'lsp-mode-hook 'lsp-ui-mode)
|
||||||
|
(setq lsp-ui-doc-position 'bottom)))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
* Utility
|
* Utility
|
||||||
** term
|
** term
|
||||||
|
Loading…
Reference in New Issue
Block a user