Skip to content

Commit

Permalink
Prefer nixd to nil for LSP with Nix code
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Aug 2, 2024
1 parent 217afde commit 6972ba9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisp/init-nix.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
(maybe-require-package 'nix-mode))

(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs '((nix-mode nix-ts-mode) . ("nil"))))
;; Prefer nixd to nil, and enable in nix-ts-mode too
(add-to-list 'eglot-server-programs
`((nix-mode nix-ts-mode) . ,(eglot-alternatives '("nixd" "nil")))))

(maybe-require-package 'nixpkgs-fmt)
(maybe-require-package 'nixfmt)
Expand Down

0 comments on commit 6972ba9

Please sign in to comment.