[Emacs] Add --impure to nix develop command for lsp
This commit is contained in:
parent
074800a54a
commit
e3df25c12e
@ -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
|
||||||
|
:preface
|
||||||
|
(defun imalison:nix-develop-lsp-wrapper-function (argv)
|
||||||
|
(append
|
||||||
|
(append (list "nix" "develop" "-I" "." "--impure" "--command")
|
||||||
|
argv)))
|
||||||
: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
|
||||||
|
Loading…
Reference in New Issue
Block a user