Commit 5ed496c

HPCesia <me@hpcesia.com>
2025-08-26 19:08:46
feat: update editor config
1 parent f2f5bc7
Changed files (4)
home
base
tui
editors
helix
languages
linux
home/base/tui/editors/helix/languages/markdown.nix
@@ -8,12 +8,14 @@
           tab-width = 2;
           unit = "  ";
         };
+        soft-wrap.enable = true;
         roots = [
           ".prettierignore"
           ".prettierrc"
           ".prettierrc.cjs"
           ".prettierrc.mjs"
           ".prettierrc.js"
+          ".marksman.toml"
         ];
         formatter = {
           command = "prettier";
home/linux/gui/vscode/profiles/default.nix
@@ -14,6 +14,8 @@
     ++ [
       {
         default = {
+          enableUpdateCheck = false;
+          enableExtensionUpdateCheck = false;
           userSettings = {
             # --- Editor Settings --- #
             "editor.fontSize" = 16;
@@ -21,9 +23,9 @@
             "editor.guides.bracketPairs" = true;
             "editor.formatOnSave" = true;
             "editor.unicodeHighlight.allowedLocales"."zh-hans" = true;
+            "editor.lineNumbers" = "relative";
             # --- Terminal Settings --- #
             "terminal.integrated.fontSize" = 14;
-            "terminal.integrated.minimumContrastRatio" = 1;
             "terminal.integrated.defaultProfile.linux" = "fish";
             # --- Workbench Settings --- #
             "workbench.colorTheme" = "Catppuccin Macchiato";
@@ -31,8 +33,8 @@
             "workbench.startupEditor" = "none";
             # --- Extension Settings --- #
             "git.enabled" = false; # Disable git because I use jujutsu instead
-            "GitCommitPlugin.ShowEmoji" = false;
-            "GitCommitPlugin.MaxSubjectCharacters" = 25;
+            # "GitCommitPlugin.ShowEmoji" = false;
+            # "GitCommitPlugin.MaxSubjectCharacters" = 25;
             "github.copilot.advanced".useLanguageServer = true;
             "nix.enableLanguageServer" = true;
             "nix.serverSettings".nil.formatting.command = ["alejandra"];
@@ -49,20 +51,21 @@
             "security.workspace.trust.untrustedFiles" = "open";
             "window.newWindowProfile" = "Default";
             "workbench.settings.applyToAllProfiles" = [
-              # Normal
+              # -- Normal -- #
               "editor.fontSize"
               "editor.fontLigatures"
               "editor.guides.bracketPairs"
               "editor.formatOnSave"
+              "editor.lineNumbers"
               "terminal.integrated.fontSize"
               "terminal.integrated.defaultProfile.linux"
               "workbench.colorTheme"
               "workbench.iconTheme"
               "workbench.startupEditor"
-              # Extension
+              # -- Extension -- #
               "git.enabled"
-              "GitCommitPlugin.ShowEmoji"
-              "GitCommitPlugin.MaxSubjectCharacters"
+              # "GitCommitPlugin.ShowEmoji"
+              # "GitCommitPlugin.MaxSubjectCharacters"
               "github.copilot.advanced"
               "nix.enableLanguageServer"
               "nix.serverSettings"
home/linux/gui/vscode/profiles/rust.nix
@@ -1,6 +1,11 @@
-{pkgs, ...}: {
+{
+  pkgs,
+  lib,
+  ...
+}: {
   Rust = {
     userSettings = {
+      "rust-analyzer.server.path" = lib.getExe pkgs.rust-analyzer;
     };
 
     extensions = with pkgs.vscode-extensions; [
home/linux/gui/vscode/profiles/tauri.nix
@@ -1,9 +1,23 @@
-{pkgs, ...}: {
+{
+  pkgs,
+  lib,
+  ...
+}: {
   Tauri = {
-    userSettings = {
-      "javascript.suggest.paths" = false;
-      "typescript.suggest.paths" = false;
-    };
+    userSettings =
+      {
+        "javascript.suggest.paths" = false;
+        "typescript.suggest.paths" = false;
+        "rust-analyzer.server.path" = lib.getExe pkgs.rust-analyzer;
+      }
+      // (lib.genAttrs [
+          "[javascript]"
+          "[typescript]"
+          "[vue]"
+        ] (_: {
+          "editor.defaultFormatter" = "esbenp.prettier-vscode";
+          "editor.codeActionsOnSave"."source.fixAll.eslint" = "always";
+        }));
 
     extensions = with pkgs.vscode-extensions; [
       vue.volar # Vue LSP