Commit 0535e49
Changed files (4)
home
linux
gui
vscode
profiles
home/linux/gui/vscode/profiles/astro.nix
@@ -0,0 +1,22 @@
+{pkgs, ...}: let
+ baseExtensions = import ../baseExtensions.nix pkgs;
+in {
+ programs.vscode.profiles.astro = {
+ userSettings = {
+ "javascript.suggest.paths" = false;
+ "typescript.suggest.paths" = false;
+ };
+
+ extensions =
+ (with pkgs.vscode-extensions; [
+ astro-build.astro-vscode # Astro LSP
+ vue.volar # Vue LSP
+ bradlc.vscode-tailwindcss # Tailwind CSS LSP
+ unifiedjs.vscode-mdx # MDX LSP
+
+ dbaeumer.vscode-eslint
+ esbenp.prettier-vscode
+ ])
+ ++ baseExtensions;
+ };
+}
home/linux/gui/vscode/profiles/default.nix
@@ -8,32 +8,38 @@ in {
imports = mylib.scanPaths ./.;
programs.vscode.profiles.default = {
- enableUpdateCheck = false;
- enableExtensionUpdateCheck = false;
-
userSettings = {
- # --- Editor Settings ---
+ # --- Editor Settings --- #
"editor.fontSize" = 16;
"editor.fontLigatures" = true;
"editor.guides.bracketPairs" = true;
"editor.formatOnSave" = true;
- # --- Terminal Settings ---
+ "editor.unicodeHighlight.allowedLocales"."zh-hans" = true;
+ # --- Terminal Settings --- #
"terminal.integrated.fontSize" = 14;
- # --- Workbench Settings ---
+ "terminal.integrated.minimumContrastRatio" = 1;
+ # --- Workbench Settings --- #
+ "workbench.colorTheme" = "Catppuccin Macchiato";
"workbench.iconTheme" = "material-icon-theme";
"workbench.startupEditor" = "none";
- # --- Extension Settings ---
+ # --- Extension Settings --- #
"nix.formatterPath" = "alejandra";
- # --- Other Settings ---
+ # --- Update Settings --- #
+ "extensions.autoCheckUpdates" = false;
+ "extensions.autoUpdate" = false;
+ "update.mode" = "none";
+ # --- Other Settings --- #
+ # Settings apply to all profiles
"telemetry.telemetryLevel" = "off";
"security.workspace.trust.untrustedFiles" = "open";
- "window.newWindowProfile" = "default";
+ "window.newWindowProfile" = "Default";
"workbench.settings.applyToAllProfiles" = [
"editor.fontSize"
"editor.fontLigatures"
"editor.guides.bracketPairs"
- "editor.semanticTokenColorCustomizations"
+ "editor.formatOnSave"
"terminal.integrated.fontSize"
+ "workbench.colorTheme"
"workbench.iconTheme"
"workbench.startupEditor"
];
home/linux/gui/vscode/profiles/typst.nix
@@ -11,7 +11,6 @@ in {
extensions =
(with pkgs.vscode-extensions; [
myriad-dreamin.tinymist # Typst LSP
- tamasfe.even-better-toml # TOML syntax
tomoki1207.pdf # PDF Viewer
])
++ baseExtensions;
home/linux/gui/vscode/baseExtensions.nix
@@ -1,7 +1,7 @@
pkgs:
with pkgs.vscode-extensions; [
# Translation
- ms-ceintl.vscode-language-pack-zh-hans
+ # ms-ceintl.vscode-language-pack-zh-hans
w88975.code-translate
# Appearance
@@ -22,4 +22,8 @@ with pkgs.vscode-extensions; [
# Nix
jnoortheen.nix-ide
+
+ # Configuration languages
+ tamasfe.even-better-toml
+ redhat.vscode-yaml
]