This commit is contained in:
2026-03-04 09:40:16 +00:00
parent a3c9102409
commit 0985ef935f

View File

@@ -3,45 +3,51 @@
enable = true; enable = true;
enableNushellIntegration = true; enableNushellIntegration = true;
settings = { settings = {
add_newline = true; format = "$directory\${custom.scm}$all";
command_timeout = 2000; buf = {
format = "$directory$git_branch$git_status$\{custom.scm}$character"; disabled = true;
};
character = { character = {
error_symbol = "[ ](bold #e64553)"; error_symbol = "[󰘧](bold red)";
success_symbol = "[](bold #40a02b)[](bold #df8e1d)[](bold #dc8a78)"; success_symbol = "[󰘧](bold green)";
}; };
directory = { directory = {
truncation_length = 2; truncate_to_repo = false;
truncation_symbol = "/"; };
repo_root_style = "bold cyan"; dotnet = {
repo_root_format = "[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) "; detect_files = ["global.json" "Directory.Build.props" "Directory.Build.targets" "Packages.props"];
}; };
git_branch = { git_branch = {
format = "[$symbol$branch(:$remote_branch)]($style) "; disabled = true;
symbol = " "; symbol = " ";
style = "bold #8839ef"; truncation_length = 18;
truncation_length = 20;
truncation_symbol = "";
}; };
git_status = { git_status = {
format = "([$all_status$ahead_behind]($style) )"; disabled = true;
style = "bold #df8e1d"; };
conflicted = "conflict:$count "; git_commit = {
ahead = "ahead:$count "; disabled = true;
behind = "behind:$count "; };
diverged = "ahead:$ahead_count behind:$behind_count "; git_state = {
untracked = "new:$count "; disabled = true;
stashed = "stash:$count ";
modified = "mod:$count ";
staged = "staged:$count ";
renamed = "mv:$count ";
deleted = "del:$count ";
}; };
custom.scm = { custom.scm = {
when = "jj-starship detect"; when = "jj-starship detect";
shell = ["jj-starship" "--strip-bookmark-prefix" "cschmatzler/" "--truncate-name" "20" "--bookmarks-display-limit" "1"]; shell = ["jj-starship" "--strip-bookmark-prefix" "cschmatzler/" "--truncate-name" "20" "--bookmarks-display-limit" "1"];
format = "$output "; format = "$output ";
}; };
golang = {
symbol = " ";
};
lua = {
symbol = " ";
};
nix_shell = {
symbol = " ";
};
package = {
disabled = true;
};
}; };
}; };
} }