nixos-config/config/apps/vscode.nix

47 lines
1.4 KiB
Nix
Raw Normal View History

2024-07-28 23:48:00 +00:00
{ pkgs, ... }:
{
2024-08-04 22:03:09 +00:00
home.packages = with pkgs; [
2024-08-12 01:15:17 +00:00
shellcheck
2024-08-04 22:03:09 +00:00
shfmt # for shell-format extension
];
2024-07-28 23:48:00 +00:00
programs.vscode = {
enable = true;
mutableExtensionsDir = false;
2024-07-28 23:48:00 +00:00
extensions = with pkgs.vscode-extensions; [
eamodio.gitlens
2024-08-04 22:03:09 +00:00
esbenp.prettier-vscode
file-icons.file-icons
foxundermoon.shell-format
2024-07-28 23:48:00 +00:00
jnoortheen.nix-ide
kamikillerto.vscode-colorize
2024-08-04 22:03:09 +00:00
scalameta.metals
timonwong.shellcheck
2024-07-28 23:48:00 +00:00
];
userSettings = {
2024-08-04 22:03:09 +00:00
"[css,html,javascript,javascriptreact,json,less,markdown,scss,sass,typescript,typescriptreact,vue,vue-html,yaml]" = {
"editor.defaultFormatter" = "esbenp.prettier-vscode";
};
"[bats,dockerfile,hosts,ignore,jvmoptions,properties,shellscript]" = {
"editor.defaultFormatter" = "foxundermoon.shell-format";
};
2024-07-28 23:48:00 +00:00
"colorize.languages" = [
"javascript"
"nix"
];
2024-08-04 22:03:09 +00:00
"editor.formatOnSave" = true;
"editor.wordWrap" = "on";
"files.autoSave" = "afterDelay";
"files.watcherExclude" = {
"**/.bloop" = true;
"**/.metals" = true;
"**/.ammonite" = true;
};
2024-09-08 16:42:17 +00:00
"git.openRepositoryInParentFolders" = "always";
2024-08-04 22:03:09 +00:00
"nix.formatterPath" = "nixpkgs-fmt";
"security.workspace.trust.untrustedFiles" = "open";
"workbench.colorTheme" = "Default Dark Modern";
"workbench.iconTheme" = "file-icons";
2024-07-28 23:48:00 +00:00
};
};
}