From 13a6dc0f666d619dc81f2ef6afc5176376a36a15 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Mon, 9 Oct 2023 10:49:56 +0200 Subject: [PATCH 1/2] vscodium: set default themes it always tried to set the themes by itself at runtime and then complained due to readonly settings --- home/home.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home/home.nix b/home/home.nix index 30ea199..324c482 100644 --- a/home/home.nix +++ b/home/home.nix @@ -345,6 +345,8 @@ in userSettings = { "editor.fontLigatures" = true; "window.autoDetectColorScheme" = true; + "workbench.preferredDarkColorScheme" = "Default Dark Modern"; + "workbench.preferredLightColorScheme" = "Default Light Modern"; "[nix]" = { "editor.insertSpaces" = true; "editor.tabSize" = 2; From e1f16f2c71c89d13b200d5c7b328ab88e92dd225 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Tue, 10 Oct 2023 09:48:20 +0200 Subject: [PATCH 2/2] vscodium: disable automatic Nix formatting --- home/home.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/home.nix b/home/home.nix index 324c482..f33404e 100644 --- a/home/home.nix +++ b/home/home.nix @@ -350,6 +350,11 @@ in "[nix]" = { "editor.insertSpaces" = true; "editor.tabSize" = 2; + "editor.defaultFormatter" = "kamadorueda.alejandra"; + # for now, disable automatic formatting to prevent disruption of existing code bases + "editor.formatOnPaste" = false; + "editor.formatOnSave" = false; + "editor.formatOnType" = false; }; "editor.fontSize" = 13; "editor.fontWeight" = "normal";