Skip to content

Commit

Permalink
docs/editor: update editor setup for vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruixi-rebirth committed Jul 15, 2023
1 parent d902614 commit 5e78186
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions docs/editor-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,6 @@ Refer to https://github.com/nix-community/nixd/blob/main/docs/user-guide.md#inst
https://github.com/nix-community/vscode-nix-ide extension provide a general interface for nixd, and it should work out of box.
Please file a bug if you encountered some trouble using the extension.




```jsonc
{
"nix.enableLanguageServer": true,
// Use absolute path if it is not in `PATH`.
"nix.serverPath": "nixd",
"nix.serverSettings": {
"nixd": {
"eval": {
// stuff
},
"formatting": {
"command": "nixpkgs-fmt"
},
"options": {
"enable": true,
"target": {
// tweak arguments here
"args": [],
// NixOS options
"installable": "<flakeref>#nixosConfigurations.<name>.options"

// Flake-parts options
// "installable": "<flakeref>#debug.options"

// Home-manager options
// "installable": "<flakeref>#homeConfigurations.<name>.options"
}
}
}
}
}
```
We provide a test environment with the *vscode-nix-ide* plugin, and the repository has some [configuration examples](/docs/examples) that you can try.

Start up the test environment:
Expand Down

0 comments on commit 5e78186

Please sign in to comment.