vscode: use prettier

This commit is contained in:
Sean Buckley 2023-07-24 03:13:14 -04:00
parent 92f224fef6
commit 7bbb6307c4
3 changed files with 9 additions and 0 deletions

5
.editorconfig Normal file
View file

@ -0,0 +1,5 @@
root = true
[*.json]
indent_style = space
indent_size = 4

View file

@ -63,6 +63,7 @@ with lib;
(vscode-with-extensions.override { (vscode-with-extensions.override {
vscodeExtensions = with pkgs.vscode-extensions; [ vscodeExtensions = with pkgs.vscode-extensions; [
esbenp.prettier-vscode
jnoortheen.nix-ide jnoortheen.nix-ide
ms-azuretools.vscode-docker ms-azuretools.vscode-docker
ms-python.python ms-python.python

View file

@ -1,6 +1,9 @@
{ {
"[nix]": { "editor.defaultFormatter": "jnoortheen.nix-ide" },
"[python]": { "editor.defaultFormatter": "ms-python.python" },
"diffEditor.renderSideBySide": false, "diffEditor.renderSideBySide": false,
"editor.cursorSurroundingLines": 9, "editor.cursorSurroundingLines": 9,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.renderFinalNewline": "off", "editor.renderFinalNewline": "off",
"editor.scrollBeyondLastLine": false, "editor.scrollBeyondLastLine": false,