diff --git a/home/vscode.nix b/home/vscode.nix index 13f05bd..7e6dc20 100644 --- a/home/vscode.nix +++ b/home/vscode.nix @@ -21,6 +21,7 @@ james-yu.latex-workshop github.copilot davidanson.vscode-markdownlint + tamasfe.even-better-toml ]; userSettings = { "window.menuBarVisibility" = "hidden"; @@ -36,6 +37,10 @@ "editor.formatOnSave" = true; "editor.formatOnSaveMode" = "file"; # modificationsIfAvailable does not work }; + "[toml]" = { + "editor.formatOnSave" = true; + "editor.modificationsIfAvailable" = "file"; + }; "python.formatting.autopep8Path" = "${pkgs.python311Packages.autopep8}/bin/autopep8"; "nix.enableLanguageServer" = true; "nix.serverPath" = "${pkgs.nil}/bin/nil";