From 43f6edcf02cea4f00b4c0f48d413c1154e9d1896 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Sat, 29 Aug 2026 21:40:44 +0800 Subject: [PATCH] starship: increase scan_timeout to 1500ms --- modules/cli/shell/starship.nix | 3 +-- modules/coding/misc.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/modules/cli/shell/starship.nix b/modules/cli/shell/starship.nix index ece00f0..4249992 100644 --- a/modules/cli/shell/starship.nix +++ b/modules/cli/shell/starship.nix @@ -17,8 +17,7 @@ in enable = true; settings = lib.recursiveUpdate (with builtins; fromTOML (readFile ./starship-preset.toml)) { add_newline = false; - command_timeout = 2000; - nix_shell.disabled = true; + scan_timeout = 1500; format = let dedupDollar = diff --git a/modules/coding/misc.nix b/modules/coding/misc.nix index 9a4c972..93d4fc8 100644 --- a/modules/coding/misc.nix +++ b/modules/coding/misc.nix @@ -19,6 +19,22 @@ in gnumake github-cli # gh ]; + programs.starship.settings = { + nix_shell.disabled = true; + # direnv = + # let + # esc = builtins.fromJSON ''"\u001b"''; + # in + # { + # disabled = false; + # format = "$loaded$allowed "; + # loaded_msg = "${esc}[1;92m ${esc}[0m"; # green + # unloaded_msg = ""; + # allowed_msg = ""; + # not_allowed_msg = "${esc}[1;93m ${esc}[0m"; # yellow + # denied_msg = "${esc}[1;91m ${esc}[0m"; # red + # }; + }; programs.direnv = { enable = true; nix-direnv.enable = true;