From 3dbff6c781e591cc96900d3432c7ed3cf8921f9c Mon Sep 17 00:00:00 2001 From: Jeff Kreeftmeijer Date: Sat, 27 Apr 2024 23:16:11 +0200 Subject: [PATCH] Configure nixd as the nix language server --- default.el | 1 + emacs-configuration.org | 1 + 2 files changed, 2 insertions(+) diff --git a/default.el b/default.el index 19d37af..992c40f 100644 --- a/default.el +++ b/default.el @@ -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) diff --git a/emacs-configuration.org b/emacs-configuration.org index 208df4e..2c49b70 100644 --- a/emacs-configuration.org +++ b/emacs-configuration.org @@ -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: