mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
move vscode settings
This commit is contained in:
parent
4434ce9821
commit
2e208d9fe0
2 changed files with 40 additions and 32 deletions
|
@ -96,38 +96,18 @@ with lib;
|
||||||
ln -sf /etc/vscode-keybindings.json ~/.config/VSCodium/User/keybindings.json
|
ln -sf /etc/vscode-keybindings.json ~/.config/VSCodium/User/keybindings.json
|
||||||
'';
|
'';
|
||||||
|
|
||||||
environment.etc."vscode-settings.json".text = builtins.toJSON {
|
environment.etc."vscode-settings.json".text = builtins.toJSON (
|
||||||
"diffEditor.renderSideBySide" = false;
|
(
|
||||||
"editor.cursorSurroundingLines" = 9;
|
builtins.fromJSON (builtins.readFile ./vscode-settings.json)
|
||||||
"editor.formatOnSave" = true;
|
) // {
|
||||||
"editor.renderFinalNewline" = false;
|
# NixOS-specific vscode settings:
|
||||||
"editor.scrollBeyondLastLine" = false;
|
|
||||||
"files.insertFinalNewline" = true;
|
|
||||||
"files.trimFinalNewlines" = true;
|
|
||||||
"files.watcherExclude"."**/result/**" = true;
|
|
||||||
"git.autofetch" = true;
|
|
||||||
"git.confirmSync" = false;
|
|
||||||
"python.formatting.provider" = "black";
|
|
||||||
"redhat.telemetry.enabled" = false;
|
|
||||||
"security.workspace.trust.banner" = "never";
|
|
||||||
"security.workspace.trust.startupPrompt" = "never";
|
|
||||||
"security.workspace.trust.untrustedFiles" = "newWindow";
|
|
||||||
"terminal.external.linuxExec" = "x-terminal-emulator";
|
|
||||||
"terminal.integrated.fontFamily" = "DejaVuSansMono Nerd Font";
|
|
||||||
"terminal.integrated.fontSize" = 16;
|
|
||||||
"terminal.integrated.minimumContrastRatio" = 1;
|
|
||||||
"terminal.integrated.shellIntegration.enabled" = false;
|
|
||||||
"terminal.integrated.showExitAlert" = false;
|
|
||||||
"trailing-spaces.highlightCurrentLine" = false;
|
|
||||||
"update.showReleaseNotes" = false;
|
|
||||||
"window.menuBarVisibility" = "hidden";
|
|
||||||
"workbench.startupEditor" = "none";
|
|
||||||
|
|
||||||
# NixOS specific vscode settings, do not copy to other operating systems:
|
|
||||||
"extensions.autoCheckUpdates" = false;
|
"extensions.autoCheckUpdates" = false;
|
||||||
"extensions.autoUpdate" = false;
|
"extensions.autoUpdate" = false;
|
||||||
|
"terminal.external.linuxExec" = "x-terminal-emulator";
|
||||||
|
"terminal.integrated.fontFamily" = "DejaVuSansMono Nerd Font";
|
||||||
"update.mode" = "none";
|
"update.mode" = "none";
|
||||||
};
|
}
|
||||||
|
);
|
||||||
|
|
||||||
environment.etc."vscode-keybindings.json".text = builtins.toJSON [
|
environment.etc."vscode-keybindings.json".text = builtins.toJSON [
|
||||||
{ key = "ctrl+w"; command = "-workbench.action.terminal.killEditor"; }
|
{ key = "ctrl+w"; command = "-workbench.action.terminal.killEditor"; }
|
||||||
|
|
28
modules/profiles/vscode-settings.json
Normal file
28
modules/profiles/vscode-settings.json
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
"diffEditor.renderSideBySide": false,
|
||||||
|
"editor.cursorSurroundingLines": 9,
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.renderFinalNewline": false,
|
||||||
|
"editor.scrollBeyondLastLine": false,
|
||||||
|
"files.insertFinalNewline": true,
|
||||||
|
"files.trimFinalNewlines": true,
|
||||||
|
"files.watcherExclude": {
|
||||||
|
"**/result/**": true
|
||||||
|
},
|
||||||
|
"git.autofetch": true,
|
||||||
|
"git.confirmSync": false,
|
||||||
|
"python.formatting.provider": "black",
|
||||||
|
"redhat.telemetry.enabled": false,
|
||||||
|
"security.workspace.trust.banner": "never",
|
||||||
|
"security.workspace.trust.startupPrompt": "never",
|
||||||
|
"security.workspace.trust.untrustedFiles": "newWindow",
|
||||||
|
"terminal.integrated.fontSize": 16,
|
||||||
|
"terminal.integrated.minimumContrastRatio": 1,
|
||||||
|
"terminal.integrated.shellIntegration.enabled": false,
|
||||||
|
"terminal.integrated.showExitAlert": false,
|
||||||
|
"trailing-spaces.highlightCurrentLine": false,
|
||||||
|
"update.showReleaseNotes": false,
|
||||||
|
"window.menuBarVisibility": "hidden",
|
||||||
|
"window.titleBarStyle": "native",
|
||||||
|
"workbench.startupEditor": "none"
|
||||||
|
}
|
Loading…
Reference in a new issue