Skip to content

Commit 4adbb43

Browse files
wilovywilovy
authored andcommitted
feat: Add setup for vscode
1 parent a166141 commit 4adbb43

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

.rusty-hook.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[hooks]
2-
pre-commit = "cargo fmt --all && leptosfmt src"
2+
pre-commit = "cargo fmt --all && cargo make cargo-format && cargo make leptos-format"
33
post-commit = "echo yay"
44

55
[logging]

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
"strings": true
1717
},
1818
"css.validate": false,
19+
"rust-analyzer.cargo.features": ["development", "ssr"]
1920
}

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ npm install
3030
cargo install cargo-make
3131
```
3232

33-
### Si usas nix
34-
3533
> [!NOTE]
3634
> Asegúrate de tener los flakes activados.
3735
@@ -72,7 +70,8 @@ Agrega esto en tu `settings.json`
7270
"comments": "on",
7371
"strings": true
7472
},
75-
"css.validate": false
73+
"css.validate": false,
74+
"rust-analyzer.cargo.features": ["development", "ssr"]
7675
}
7776
```
7877

rust-toolchain.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[toolchain]
2+
components = ["rust-analyzer", "rustfmt", "clippy"]
23
channel = "nightly-2024-02-12"
34
profile = "minimal"
45
targets = ["wasm32-unknown-unknown"]

0 commit comments

Comments
 (0)