Editors: format using alejandra
This commit is contained in:
parent
9351f85534
commit
82bbd7ce87
2 changed files with 14 additions and 1 deletions
3
.helix/languages.toml
Normal file
3
.helix/languages.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[[language]]
|
||||
name = "nix"
|
||||
formatter = { command = "alejandra" }
|
||||
12
.vscode/settings.json
vendored
12
.vscode/settings.json
vendored
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue