diff options
author | Franck Cuny <franck@fcuny.net> | 2023-12-04 08:14:57 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-12-04 08:14:57 -0800 |
commit | ae0c1f046d2630e5ba1419bdcac22a35049cd613 (patch) | |
tree | 3e3ad0e0f94e277d4c7595a0419c4270ff741804 | |
parent | add a snippet for new nix module (diff) | |
download | emacs.d-ae0c1f046d2630e5ba1419bdcac22a35049cd613.tar.gz |
switch to `nixd` for nix LSP
-rw-r--r-- | init.org | 11 |
1 files 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 |