From 7ab063c290997c25e282d6842c457f36f96597c1 Mon Sep 17 00:00:00 2001 From: Frost-Phoenix <67cyril6767@gmail.com> Date: Thu, 7 Dec 2023 16:03:09 +0100 Subject: [PATCH] test vscode config --- modules/home/vscode/default.nix | 35 +++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/modules/home/vscode/default.nix b/modules/home/vscode/default.nix index 5b372e0..8810cfa 100644 --- a/modules/home/vscode/default.nix +++ b/modules/home/vscode/default.nix @@ -30,13 +30,40 @@ "vsicons.dontShowNewVersionMessage" = true; "editor.fontLigatures" = true; "editor.minimap.enabled" = false; + "workbench.startupEditor" = "none"; + "editor.renderWhitespace" = "all"; + "editor.renderLineHighlight" = "none"; + "workbench.layoutControl.type" = "menu"; + "workbench.editor.limit.enabled" = true; + "workbench.editor.limit.value" = 1; + "workbench.editor.limit.perEditorGroup" = true; + "workbench.editor.showTabs" = false; + "files.autoSave" = "onWindowChange"; + "explorer.openEditors.visible" = 0; + "breadcrumbs.enabled" = false; + "editor.renderControlCharacters" = false; + "workbench.activityBar.visible" = false; + "workbench.statusBar.visible" = false; + "editor.scrollbar.verticalScrollbarSize" = 2; + "editor.scrollbar.horizontalScrollbarSize" = 2; + "editor.scrollbar.vertical" = "hidden"; + "editor.scrollbar.horizontal" = "hidden"; + "workbench.layoutControl.enabled" = false "editor.mouseWheelZoom" = true; - - # keyboard shortcuts - "editor.action.commentLine" = "ctrl+d"; - "workbench.action.files.saveFiles" = "ctrl+s"; }; + # Keybindings + keybindings = [ + { + key = "ctrl+q"; + command = "editor.action.commentLine"; + when = "editorTextFocus && !editorReadonly"; + } + { + key = "ctrl+s"; + command = "workbench.action.files.saveFiles"; + } + ]; }; }