feat: introduce treefmt and fmt all

This commit is contained in:
steveej 2024-11-15 10:17:56 +01:00
parent 80250b0179
commit 5d5282a914
213 changed files with 4967 additions and 4423 deletions

18
.vscode/settings.json vendored
View file

@ -1,4 +1,9 @@
{
"editor.defaultFormatter": "ibecker.treefmt-vscode",
"treefmt.command": "treefmt",
"editor.formatOnSave": true,
"nix.enableLanguageServer": true,
"nix.serverPath": "nil",
"nix.serverSettings": {
// settings for 'nil' LSP
"nil": {
@ -9,11 +14,14 @@
"unused_with"
]
},
"formatting": {
"command": [
"treefmt-nix",
]
}
// TODO: this doesn't work because treefmt-nix wants the output path as an argument
// "formatting": {
// "command": [
// "treefmt-nix",
// "--stdin",
// "/dev/stdout"
// ]
// }
}
},
}