formatting

This commit is contained in:
Kristian Krsnik 2023-09-04 23:56:05 +02:00
parent a53756452f
commit 42abc2a62e
No known key found for this signature in database
GPG Key ID: A618BA9FBDF8681C

View File

@ -28,24 +28,33 @@
userSettings = { userSettings = {
"git.enableCommitSigning" = true; "git.enableCommitSigning" = true;
"window.menuBarVisibility" = "hidden"; "window.menuBarVisibility" = "hidden";
"editor.fontFamily" = "'FiraCode Nerd Font'";
"editor.fontLigatures" = true;
"[nix]" = { "[nix]" = {
"editor.formatOnSave" = true; "editor.formatOnSave" = true;
"editor.formatOnSaveMode" = "file"; # modificationsIfAvailable does not work "editor.formatOnSaveMode" = "file"; # modificationsIfAvailable does not work
}; };
"[python]" = { "[python]" = {
"editor.formatOnSave" = true; "editor.formatOnSave" = true;
"editor.formatOnSaveMode" = "modificationsIfAvailable"; "editor.formatOnSaveMode" = "modificationsIfAvailable";
}; };
"[latex]" = { "[latex]" = {
"editor.formatOnSave" = true; "editor.formatOnSave" = true;
"editor.formatOnSaveMode" = "file"; # modificationsIfAvailable does not work "editor.formatOnSaveMode" = "file"; # modificationsIfAvailable does not work
}; };
"[toml]" = { "[toml]" = {
"editor.formatOnSave" = true; "editor.formatOnSave" = true;
"editor.modificationsIfAvailable" = "file"; "editor.modificationsIfAvailable" = "file";
}; };
"python.formatting.autopep8Path" = "${pkgs.python311Packages.autopep8}/bin/autopep8"; "python.formatting.autopep8Path" = "${pkgs.python311Packages.autopep8}/bin/autopep8";
"nix.enableLanguageServer" = true; "nix.enableLanguageServer" = true;
"nix.serverPath" = "${pkgs.nil}/bin/nil"; "nix.serverPath" = "${pkgs.nil}/bin/nil";
"nix.serverSettings" = { "nix.serverSettings" = {
@ -53,7 +62,9 @@
formatting = {command = ["${pkgs.alejandra}/bin/alejandra"];}; formatting = {command = ["${pkgs.alejandra}/bin/alejandra"];};
}; };
}; };
"direnv.path.executable" = "${pkgs.direnv}/bin/direnv"; "direnv.path.executable" = "${pkgs.direnv}/bin/direnv";
"latex-workshop.latex.outDir" = "%DIR%/out"; "latex-workshop.latex.outDir" = "%DIR%/out";
"terminal.integrated.profiles.linux" = { "terminal.integrated.profiles.linux" = {
@ -63,9 +74,6 @@
}; };
}; };
"terminal.integrated.defaultProfile.linux" = "bash"; "terminal.integrated.defaultProfile.linux" = "bash";
"editor.fontFamily" = "'FiraCode Nerd Font'";
"editor.fontLigatures" = true;
}; };
}; };
} }