Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save superherointj/9cf945fe143e8b3a89e9f5d0c230e2cd to your computer and use it in GitHub Desktop.
Save superherointj/9cf945fe143e8b3a89e9f5d0c230e2cd to your computer and use it in GitHub Desktop.
VSCode Global
# vscode.nix
{ config, pkgs, ... }: {
programs.vscode = {
enable = true;
package = pkgs.vscodium;
userSettings = {
"editor.minimap.enabled" = false;
"editor.fontSize" = 18;
"editor.wordWrap" = "on";
#"editor.fontFamily" = "Consolas ligaturized v2";
#"editor.fontLigatures" = true;
"diffEditor.ignoreTrimWhitespace" = false;
"git.autofetch" = true;
"git.suggestSmartCommit" = false;
"problems.showCurrentInStatus" = true;
"window.closeWhenEmpty" = true;
"window.menuBarVisibility" = "visible";
"window.titleBarStyle" = "custom";
"window.title" =
"WORKSPACE: \${folderPath} \${separator} EDITING: \${activeEditorLong} \${dirty}";
"window.zoomLevel" = 0;
"workbench.startupEditor" = "newUntitledFile";
"workbench.activityBar.visible" = false;
"workbench.iconTheme" = "file-icons";
"workbench.colorTheme" = "One Dark Pro";
"telemetry.enableTelemetry" = false;
"telemetry.enableCrashReporter" = false;
"update.mode" = "none";
# Extensions
"breadcrumbs.enabled" = true;
"dune.path" = "esy dune";
"go.formatTool" = "goimports";
"go.useLanguageServer" = true;
"markdown.extension.print.theme" = "dark";
"ocaml-formatter.profile" = "janestreet";
"ocamlformat.path" = "esy ocamlformat";
"reason.codelens.enabled" = true;
"reason.path.env" = "esy env";
#"rest-client.enableTelemetry" = false;
#"rust-client.disableRustup" = true;
"yaml.schemas" = { "file:///toc.schema.json" = "/toc\\.yml/i"; };
"files.exclude" = { "**/.github" = true; };
# File Format Association ###
"files.associations" = {
"dune" = "dune";
"dune-project" = "dune";
"Dockerfile.*" = "dockerfile";
};
"[dune]" = { };
"[json]" = { "editor.defaultFormatter" = "esbenp.prettier-vscode"; };
"[jsonc]" = { "editor.defaultFormatter" = "esbenp.prettier-vscode"; };
"[ocaml]" = { "editor.defaultFormatter" = "badochov.ocaml-formatter"; };
"[typescript]" = {
"editor.defaultFormatter" = "esbenp.prettier-vscode";
};
"[typescriptreact]" = {
"editor.defaultFormatter" = "esbenp.prettier-vscode";
};
"[xml]" = { "editor.defaultFormatter" = "DotJoshJohnson.xml"; };
"[yaml]" = { "editor.defaultFormatter" = "redhat.vscode-yaml"; };
}; # End of UserSettings
extensions = with pkgs.vscode-extensions;
[
#bbenoist.Nix -> Abandoned extension!
#vscodevim.vim
esbenp.prettier-vscode
jnoortheen.nix-ide
file-icons.file-icons
donjayamanne.githistory
editorconfig.editorconfig
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
publisher = "bungcip";
name = "better-toml";
version = "0.3.2";
sha256 = "sha256-g+LfgjAnSuSj/nSmlPdB0t29kqTmegZB5B1cYzP8kCI=";
}
{
publisher = "irongeek";
name = "vscode-env";
version = "0.1.0";
sha256 = "sha256-URq90lOFtPCNfSIl2NUwihwRQyqgDysGmBc3NG7o7vk=";
}
];
};
}
#home.packages = with pkgs; [
# boringssl
#];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment