Zed: Difference between revisions

Picnoir (talk | contribs)
No edit summary
Picnoir (talk | contribs)
No edit summary
Line 14: Line 14:
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.


Add the following snippet to your configuration file:<syntaxhighlight lang="json">
Add the following snippet to your zed configuration file:<syntaxhighlight lang="json">
  "lsp": {
  "lsp": {
   "rust-analyzer": {
   "rust-analyzer": {
     "binary": {
     "binary": {
       "path": "/run/current-system/sw/bin/rust-analyzer",
       "path": "/run/current-system/sw/bin/rust-analyzer",
     },
     },