diff --git a/modules/vscode.nix b/modules/vscode.nix index 1c185e4..c0adeb2 100644 --- a/modules/vscode.nix +++ b/modules/vscode.nix @@ -28,24 +28,33 @@ userSettings = { "git.enableCommitSigning" = true; + "window.menuBarVisibility" = "hidden"; + "editor.fontFamily" = "'FiraCode Nerd Font'"; + "editor.fontLigatures" = true; + "[nix]" = { "editor.formatOnSave" = true; "editor.formatOnSaveMode" = "file"; # modificationsIfAvailable does not work }; + "[python]" = { "editor.formatOnSave" = true; "editor.formatOnSaveMode" = "modificationsIfAvailable"; }; + "[latex]" = { "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"; "nix.serverSettings" = { @@ -53,7 +62,9 @@ formatting = {command = ["${pkgs.alejandra}/bin/alejandra"];}; }; }; + "direnv.path.executable" = "${pkgs.direnv}/bin/direnv"; + "latex-workshop.latex.outDir" = "%DIR%/out"; "terminal.integrated.profiles.linux" = { @@ -63,9 +74,6 @@ }; }; "terminal.integrated.defaultProfile.linux" = "bash"; - - "editor.fontFamily" = "'FiraCode Nerd Font'"; - "editor.fontLigatures" = true; }; }; }