Skip to content

Commit

Permalink
Configure nixd as the nix language server
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkreeftmeijer committed Apr 27, 2024
1 parent 7667560 commit 3dbff6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions default.el
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ end tell"))
:config
(add-to-list 'eglot-server-programs '((rust-ts-mode rust-mode) "rust-analyzer"))
(add-to-list 'eglot-server-programs '((elixir-ts-mode elixir-mode) "elixir-ls"))
(add-to-list 'eglot-server-programs '((nix-mode) "nixd"))
:hook
(rust-mode . eglot-ensure)
(rust-ts-mode . eglot-ensure)
Expand Down
1 change: 1 addition & 0 deletions emacs-configuration.org
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,7 @@ Language servers are added through the =eglot-server-programs= variable:
#+begin_src emacs-lisp
(add-to-list 'eglot-server-programs '((rust-ts-mode rust-mode) "rust-analyzer"))
(add-to-list 'eglot-server-programs '((elixir-ts-mode elixir-mode) "elixir-ls"))
(add-to-list 'eglot-server-programs '((nix-mode) "nixd"))
#+end_src

Start eglot automatically for Rust files:
Expand Down

0 comments on commit 3dbff6c

Please sign in to comment.