Editors: format using alejandra

This commit is contained in:
Toast 2024-03-20 12:44:55 +01:00
parent 9351f85534
commit 82bbd7ce87
2 changed files with 14 additions and 1 deletions

3
.helix/languages.toml Normal file
View file

@ -0,0 +1,3 @@
[[language]]
name = "nix"
formatter = { command = "alejandra" }

12
.vscode/settings.json vendored
View file

@ -1,5 +1,15 @@
{
"editor.detectIndentation": true,
"editor.insertSpaces": true,
"editor.defaultFormatter": "jnoortheen.nix-ide"
"editor.defaultFormatter": "jnoortheen.nix-ide",
"nix.formatterPath": "alejandra",
"nix.serverSettings": {
"nil": {
"formatting": {
"command": [
"alejandra"
]
}
}
}
}