From ae0c1f046d2630e5ba1419bdcac22a35049cd613 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 4 Dec 2023 08:14:57 -0800 Subject: switch to `nixd` for nix LSP --- init.org | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/init.org b/init.org index c677f8e..34fbae5 100644 --- a/init.org +++ b/init.org @@ -854,10 +854,13 @@ For languages where I want to use LSP, I need to add ~:hook (nix-mode . englot-e ("C-c l r" . eglot-rename)) :config (setq-default eglot-workspace-configuration - '((gopls - (usePlaceholders . t) - (staticcheck . t) - (completeUnimported . t))))) + '((gopls + (usePlaceholders . t) + (staticcheck . t) + (completeUnimported . t)))) + + ;; uses https://github.com/oxalica/nil for the LSP server instead of rnix + (add-to-list 'eglot-server-programs '(nix-mode . ("nixd")))) #+end_src *** tree-sitter -- cgit v1.2.3