feat: introduce treefmt and fmt all
This commit is contained in:
parent
80250b0179
commit
5d5282a914
213 changed files with 4967 additions and 4423 deletions
18
.vscode/settings.json
vendored
18
.vscode/settings.json
vendored
|
@ -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"
|
||||
// ]
|
||||
// }
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue