[Emacs] Add --impure to nix develop command for lsp

This commit is contained in:
Ivan Malison 2023-09-05 10:44:30 -06:00
parent 074800a54a
commit e3df25c12e

View File

@ -1051,7 +1051,7 @@ I keep it around just in case I need it.
#+END_SRC #+END_SRC
** Sane Defaults ** Sane Defaults
#+BEGIN_SRC emacs-lisp -n -r #+BEGIN_SRC emacs-lisp -n -r
(global-auto-revert-mode) (global-auto-revert-mode +1)
(auto-save-visited-mode +1) (auto-save-visited-mode +1)
(show-paren-mode 1) (show-paren-mode 1)
(setq reb-re-syntax 'string) (setq reb-re-syntax 'string)
@ -2838,16 +2838,6 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
(setq hindent-style nil) (setq hindent-style nil)
(add-hook 'haskell-mode-hook 'hindent-mode))) (add-hook 'haskell-mode-hook 'hindent-mode)))
#+END_SRC #+END_SRC
**** ghc-mod
#+BEGIN_SRC emacs-lisp
(use-package ghc
:after haskell-mode
:disabled t
:config
(progn
(setq ghc-debug t)
(add-hook 'haskell-mode-hook 'ghc-init)))
#+END_SRC
**** company-ghc **** company-ghc
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package company-ghc (use-package company-ghc
@ -3271,12 +3261,13 @@ emr (emacs refactor) provides support for refactoring in many programming langua
(use-package lsp-mode (use-package lsp-mode
:defer 3 :defer 3
:commands lsp :commands lsp
:config :preface
(progn
(defun imalison:nix-develop-lsp-wrapper-function (argv) (defun imalison:nix-develop-lsp-wrapper-function (argv)
(append (append
(append (list "nix" "develop" "-I" "." "--command") (append (list "nix" "develop" "-I" "." "--impure" "--command")
argv))) argv)))
:config
(progn
(setq lsp-prefer-flymake nil) (setq lsp-prefer-flymake nil)
(use-package lsp-ui (use-package lsp-ui
:config :config