feat(starship): remove most git info in jj repos
This commit is contained in:
@@ -19,7 +19,34 @@ in {
|
|||||||
inherit (cfg) enable;
|
inherit (cfg) enable;
|
||||||
enableTransience = true;
|
enableTransience = true;
|
||||||
settings = mkIf cfg.jjIntegration {
|
settings = mkIf cfg.jjIntegration {
|
||||||
custom.jj = {
|
# Disabling these so they can be enabled conditionally
|
||||||
|
# See https://github.com/jj-vcs/jj/wiki/Starship
|
||||||
|
git_status.disabled = true;
|
||||||
|
git_commit.disabled = true;
|
||||||
|
git_metrics.disabled = true;
|
||||||
|
git_branch.disabled = true;
|
||||||
|
custom = let
|
||||||
|
when = "! jj --ignore-working-copy-root";
|
||||||
|
description = "Only show if we’re not in a jj repository";
|
||||||
|
style = "";
|
||||||
|
in {
|
||||||
|
git_status = {
|
||||||
|
inherit when description style;
|
||||||
|
command = "starship module git_status";
|
||||||
|
};
|
||||||
|
git_commit = {
|
||||||
|
inherit when description style;
|
||||||
|
command = "starship module git_commit";
|
||||||
|
};
|
||||||
|
git_metrics = {
|
||||||
|
inherit when description style;
|
||||||
|
command = "starship module git_metrics";
|
||||||
|
};
|
||||||
|
git_branch = {
|
||||||
|
inherit when description style;
|
||||||
|
command = "starship module git_branch";
|
||||||
|
};
|
||||||
|
jj = {
|
||||||
description = "The current jj status";
|
description = "The current jj status";
|
||||||
detect_folders = [".jj"];
|
detect_folders = [".jj"];
|
||||||
symbol = "🥋 ";
|
symbol = "🥋 ";
|
||||||
@@ -46,4 +73,5 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user