Try enabling eglot lsp for nix

This commit is contained in:
niten 2023-05-18 11:03:12 -07:00
parent 2dc9bcd1af
commit 47773717b0
2 changed files with 20 additions and 15 deletions

View File

@ -93,7 +93,7 @@
(eval +overlay) ; run code, run (also, repls)
;;gist ; interacting with github gists
lookup ; navigate your code and its documentation
;;lsp
(lsp +eglot)
magit ; a git porcelain for Emacs
make ; run make tasks from Emacs
;;pass ; password manager for nerds
@ -113,7 +113,7 @@
:lang
;;agda ; types of types of types of types...
cc ; C/C++/Obj-C madness
clojure ; java with a lisp
(clojure +lsp) ; java with a lisp
common-lisp ; if you've seen one lisp, you've seen them all
;;coq ; proofs-as-programs
;;crystal ; ruby at the speed of c

View File

@ -46,6 +46,11 @@ Usage: (advice-add 'my-function-for-advisement :around 'tls-nocheck-error-advice
:config
(advice-add 'elpher-get-gemini-response :around 'tls-nocheck-error-advice))
(when (and (package! eglot) (package! nix-mode))
(use-package eglot
:config (add-to-list 'eglot-server-programs '(nix-mode . ("nil")))
:hook (nix-mode . eglot-ensure)))
;; To install a package directly from a remote git repo, you must specify a
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
;; https://github.com/raxod502/straight.el#the-recipe-format