Zed: Difference between revisions

m Tomodachi94 moved page Zed editor to Zed: unnecessary qualifier in title
m copyedit, fix headings
Line 4: Line 4:
Its Linux support is fairly recent, the NixOS support even more so.
Its Linux support is fairly recent, the NixOS support even more so.


=== LSP Support ===
== LSP Support ==
By default, Zed will try to download pre-build LSP servers in <code>~/.local/share/zed/languages/</code>. This obviously won't work for NixOS.
By default, Zed will try to download pre-built LSP servers in <code>~/.local/share/zed/languages/</code>. This does not work for NixOS.


There's sadly no way to inject those from <code>$PATH</code> for now. Worse, the way to point to the language server is language-specific, there is no global configuration flag for now.
There's sadly no way to inject those from <code>$PATH</code> for now. Worse, the way to point to the language server is language-specific, there is no global configuration flag for now.
Line 11: Line 11:
The following sections contain some language-specific setup working on NixOS.
The following sections contain some language-specific setup working on NixOS.


==== Rust-analyzer ====
=== rust-analyzer ===
Here, we'll assume rust-analyzer is globally installed in your system profile at <code>/run/current-system/sw/bin/rust-analyzer</code>. You may want to adapt this path in the following code snippet to something more relevant to your use case.
Here, we'll assume rust-analyzer is globally installed in your system profile at <code>/run/current-system/sw/bin/rust-analyzer</code>. You may want to adapt this path in the following code snippet to something more relevant to your use case.