File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 41
41
(make-lsp-client :new-connection (lsp-stdio-connection (lambda () lsp-nix-rnix-server-path))
42
42
:major-modes '(nix-mode nix-ts-mode)
43
43
:server-id 'rnix-lsp
44
+ :priority -2 ))
45
+
46
+ (defgroup lsp-nix-nixd nil
47
+ " LSP support for Nix, using nixd language server."
48
+ :group 'lsp-mode
49
+ :link '(url-link " https://github.com/nix-community/nixd" ))
50
+
51
+ (defcustom lsp-nix-nixd-server-path " nixd"
52
+ " Executable path for the server."
53
+ :group 'lsp-nix-nixd
54
+ :type 'string
55
+ :package-version '(lsp-mode . " 8.0.0" ))
56
+
57
+ (lsp-register-client
58
+ (make-lsp-client :new-connection (lsp-stdio-connection (lambda () lsp-nix-nixd-server-path))
59
+ :major-modes '(nix-mode)
60
+ :server-id 'nixd-lsp
44
61
:priority -1 ))
45
62
46
63
(defgroup lsp-nix-nil nil
Original file line number Diff line number Diff line change 614
614
},
615
615
{
616
616
"name" : " nix" ,
617
- "full-name" : " Nix" ,
617
+ "full-name" : " Nix (nixd language server)" ,
618
+ "server-name" : " nixd" ,
619
+ "server-url" : " https://github.com/nix-community/nixd" ,
620
+ "installation" : " nix profile install github:nixos/nixpkgs#nixd" ,
621
+ "debugger" : " Not available"
622
+ },
623
+ {
624
+ "name" : " nix" ,
625
+ "full-name" : " Nix (rnix language server)" ,
618
626
"server-name" : " rnix-lsp" ,
619
627
"server-url" : " https://github.com/nix-community/rnix-lsp" ,
620
- "installation" : " nix-env -i rnix-lsp" ,
628
+ "installation" : " nix profile install github:nixos/nixpkgs# rnix-lsp" ,
621
629
"debugger" : " Not available"
622
630
},
623
631
{
Original file line number Diff line number Diff line change 108
108
- MSSQL : https://emacs-lsp.github.io/lsp-mssql
109
109
- Nginx : page/lsp-nginx.md
110
110
- Nim : page/lsp-nim.md
111
+ - Nix (nixd-lsp) : page/lsp-nix.md
111
112
- Nix (rnix-lsp) : page/lsp-nix.md
112
113
- Nix (nil) : page/lsp-nix-nil.md
113
114
- OCaml (ocaml-lsp) : page/lsp-ocaml-lsp-server.md
You can’t perform that action at this time.
0 commit comments