1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-01-31 07:03:36 +00:00
.dotfiles/nixos/home/vscode.nix

56 lines
2.2 KiB
Nix
Raw Normal View History

{ pkgs, ... }: {
programs.vscode = {
enable = true;
package = pkgs.vscodium;
enableUpdateCheck = false;
enableExtensionUpdateCheck = false;
extensions = with pkgs.vscode-extensions; [
catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons
editorconfig.editorconfig
esbenp.prettier-vscode
jnoortheen.nix-ide
llvm-vs-code-extensions.vscode-clangd
mesonbuild.mesonbuild
2025-01-24 03:34:00 +00:00
ms-vscode.live-server
rust-lang.rust-analyzer
skellock.just
2025-01-22 02:23:44 +00:00
vadimcn.vscode-lldb
wakatime.vscode-wakatime
];
2025-01-23 03:50:51 +00:00
userSettings =
let
df = lang: formatter: {
name = "[" + lang + "]";
value = {
"editor.defaultFormatter" = formatter;
};
};
in {
"editor.fontFamily" = "'Fira Code Light', monospace";
# "editor.fontLigatures" = true;
"editor.formatOnSave" = false;
"editor.indentSize" = 4;
"editor.tabSize" = 4;
"explorer.confirmDelete" = false;
"explorer.confirmDragAndDrop" = false;
"mesonbuild.buildFolder" = "build";
"prettier.tabWidth" = 4;
"prettier.trailingComma" = "none";
"prettier.singleAttributePerLine" = false;
"prettier.useEditorConfig" = true;
2025-01-24 03:34:00 +00:00
"svelte.enable-ts-plugin" = true;
2025-01-23 03:50:51 +00:00
"telemetry.telemetryLevel" = "off";
"workbench.activityBar.iconClickBehavior" = "toggle";
"workbench.activityBar.location" = "bottom";
"workbench.colorTheme" = "Catppuccin Frappé";
"workbench.iconTheme" = "catppuccin-frappe";
} // builtins.listToAttrs [
(df "css" "esbenp.prettier-vscode")
2025-01-24 03:34:00 +00:00
(df "html" "esbenp.prettier-vscode")
2025-01-23 03:50:51 +00:00
(df "typescript" "esbenp.prettier-vscode")
(df "javascript" "esbenp.prettier-vscode")
];
};
}