Skip to content

Commit d4bf20c

Browse files
authored
docs: Update README.md
1 parent 9b497b8 commit d4bf20c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Adds [Nix](https://nixos.org/) language support for [Visual Studio Code](https:/
1818

1919
Full language support can be enabled by using a language server. Generally, any Nix [LSP](https://microsoft.github.io/language-server-protocol/) implementation should work. Some examples are given below for [`nil`](https://github.com/oxalica/nil?tab=readme-ov-file#vscodevscodium-with-nix-ide) and [`nixd`](https://github.com/nix-community/nixd).
2020

21-
```json5
21+
```json
2222
{
2323
"nix.enableLanguageServer": true,
2424
"nix.serverPath": "nil", // or "nixd"
@@ -64,7 +64,9 @@ It can be changed by setting `nix.formatterPath` to any command which can accept
6464

6565
```json5
6666
{
67-
"nix.formatterPath": "nixfmt" // or "nixpkgs-fmt" or "alejandra" or "nix3-fmt" or pass full list of args such as or `["treefmt", "--stdin", "{file}"]`
67+
"nix.formatterPath": "nixfmt" // or "nixpkgs-fmt" or "alejandra" or "nix3-fmt"
68+
// or pass full list of args like below
69+
// "nix.formatterPath": ["treefmt", "--stdin", "{file}"]
6870
}
6971
```
7072

0 commit comments

Comments
 (0)