Add vscode tasks

This commit is contained in:
Alexander Bantyev 2022-05-30 15:25:46 +04:00
parent 09103ed208
commit f08b8054a8
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
3 changed files with 49 additions and 10 deletions

32
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,32 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"type": "shell",
"command": "nixos-rebuild",
"args": [
"build",
"--flake",
"${workspaceFolder}"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Switch",
"type": "shell",
"command": "nixos-rebuild",
"args": [
"switch",
"--flake",
"${workspaceFolder}",
"--use-remote-sudo"
],
"problemMatcher": []
}
]
}

View File

@ -22,6 +22,7 @@
(pkgs.callPackage ./theme.nix { } config.themes.colors) (pkgs.callPackage ./theme.nix { } config.themes.colors)
matklad.rust-analyzer matklad.rust-analyzer
ocamllabs.ocaml-platform
redhat.vscode-yaml redhat.vscode-yaml
bbenoist.nix bbenoist.nix
brettm12345.nixfmt-vscode brettm12345.nixfmt-vscode
@ -34,7 +35,13 @@
"update.channel" = "none"; "update.channel" = "none";
"[nix]"."editor.tabSize" = 2; "[nix]"."editor.tabSize" = 2;
"workbench.colorTheme" = "Balsoft's generated theme"; "workbench.colorTheme" = "Balsoft's generated theme";
"vim.useCtrlKeys" = false;
}; };
keybindings = [{
key = "ctrl+shift+r";
command = "workbench.action.tasks.runTask";
when = "textInputFocus";
}];
}; };
}; };
} }

View File

@ -34,7 +34,7 @@ let
"charts.purple" = "#${base0E}"; "charts.purple" = "#${base0E}";
"charts.red" = "#${base08}"; "charts.red" = "#${base08}";
"charts.yellow" = "#${base0A}"; "charts.yellow" = "#${base0A}";
"checkbox.background" = "#${base00}"; "checkbox.background" = "#${base01}";
"checkbox.foreground" = "#${base05}"; "checkbox.foreground" = "#${base05}";
"debugConsole.errorForeground" = "#${base08}"; "debugConsole.errorForeground" = "#${base08}";
"debugConsole.infoForeground" = "#${base05}"; "debugConsole.infoForeground" = "#${base05}";
@ -152,14 +152,14 @@ let
"extensionButton.prominentHoverBackground" = "#${base02}"; "extensionButton.prominentHoverBackground" = "#${base02}";
foreground = "#${base05}"; foreground = "#${base05}";
"gitDecoration.addedResourceForeground" = "#${base0B}"; "gitDecoration.addedResourceForeground" = "#${base0B}";
"gitDecoration.conflictingResourceForeground" = "#${base0A}"; "gitDecoration.conflictingResourceForeground" = "#${base09}";
"gitDecoration.deletedResourceForeground" = "#${base08}"; "gitDecoration.deletedResourceForeground" = "#${base08}";
"gitDecoration.ignoredResourceForeground" = "#${base03}"; "gitDecoration.ignoredResourceForeground" = "#${base03}";
"gitDecoration.modifiedResourceForeground" = "#${base0E}"; "gitDecoration.modifiedResourceForeground" = "#${base0A}";
"gitDecoration.stageDeletedResourceForeground" = "#${base08}"; "gitDecoration.stageDeletedResourceForeground" = "#${base0C}";
"gitDecoration.stageModifiedResourceForeground" = "#${base0E}"; "gitDecoration.stageModifiedResourceForeground" = "#${base0C}";
"gitDecoration.submoduleResourceForeground" = "#${base0F}"; "gitDecoration.submoduleResourceForeground" = "#${base0F}";
"gitDecoration.untrackedResourceForeground" = "#${base09}"; "gitDecoration.untrackedResourceForeground" = "#${base0E}";
"icon.foreground" = "#${base04}"; "icon.foreground" = "#${base04}";
"input.background" = "#${base00}"; "input.background" = "#${base00}";
"input.foreground" = "#${base05}"; "input.foreground" = "#${base05}";
@ -260,9 +260,9 @@ let
"scrollbarSlider.background" = "#${base02}6f"; "scrollbarSlider.background" = "#${base02}6f";
"scrollbarSlider.hoverBackground" = "#${base03}6f"; "scrollbarSlider.hoverBackground" = "#${base03}6f";
"selection.background" = "#${base01}"; "selection.background" = "#${base01}";
"settings.checkboxBackground" = "#${base00}"; "settings.checkboxBackground" = "#${base01}";
"settings.checkboxForeground" = "#${base05}"; "settings.checkboxForeground" = "#${base05}";
"settings.dropdownBackground" = "#${base00}"; "settings.dropdownBackground" = "#${base01}";
"settings.dropdownForeground" = "#${base05}"; "settings.dropdownForeground" = "#${base05}";
"settings.focusedRowBackground" = "#${base02}"; "settings.focusedRowBackground" = "#${base02}";
"settings.headerForeground" = "#${base05}"; "settings.headerForeground" = "#${base05}";
@ -270,7 +270,7 @@ let
"settings.modifiedItemIndicator" = "#${base0D}"; "settings.modifiedItemIndicator" = "#${base0D}";
"settings.numberInputBackground" = "#${base00}"; "settings.numberInputBackground" = "#${base00}";
"settings.numberInputForeground" = "#${base05}"; "settings.numberInputForeground" = "#${base05}";
"settings.textInputBackground" = "#${base00}"; "settings.textInputBackground" = "#${base01}";
"settings.textInputForeground" = "#${base05}"; "settings.textInputForeground" = "#${base05}";
"sideBar.background" = "#${base00}"; "sideBar.background" = "#${base00}";
"sideBar.dropBackground" = "#${base01}6f"; "sideBar.dropBackground" = "#${base01}6f";
@ -481,7 +481,7 @@ let
{ {
name = "Embedded"; name = "Embedded";
scope = [ "punctuation.section.embedded" "variable.interpolation" ]; scope = [ "punctuation.section.embedded" "variable.interpolation" ];
settings = { foreground = "#${base0F}"; }; settings = { foreground = "#${base0C}"; };
} }
{ {
name = "Tag"; name = "Tag";