From 206a65641897d9f5df4642253324afcb1780d709 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 14 Aug 2021 04:11:44 -0600 Subject: [PATCH] [Emacs] Haskell lsp stuff --- dotfiles/emacs.d/README.org | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 3169ecb5..a9d63c16 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -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-args '("-"))) (message "imalison:use-lsp-haskell: %s" imalison:use-lsp-haskell) - (when imalison:use-lsp-haskell - (use-package lsp-haskell) + (when t + (require 'lsp) + (use-package lsp-haskell + :demand t) (lsp-deferred))) (add-hook 'haskell-mode-hook 'imalison:haskell-mode)) :config @@ -4016,11 +4018,16 @@ emr (emacs refactor) provides support for refactoring in many programming langua (use-package lsp-mode :config (progn + (defun imalison:nix-develop-lsp-wrapper-function (argv) + (append + (append (list "nix" "develop" "-I" "." "--command") + argv))) (setq lsp-prefer-flymake nil) (use-package lsp-ui :config - (add-hook 'lsp-mode-hook 'lsp-ui-mode)) - (add-hook 'programming-mode-hook 'lsp))) + (progn + (add-hook 'lsp-mode-hook 'lsp-ui-mode) + (setq lsp-ui-doc-position 'bottom))))) #+END_SRC * Utility ** term