Compare commits

...

2 Commits

Author SHA1 Message Date
Agatha Lovelace 1dd3619c5a
add jj status to starship, reconfigure prompt 2026-04-29 15:51:33 +02:00
Agatha Lovelace 28776a1da8
wrong lsp oops 2026-04-29 15:51:30 +02:00
2 changed files with 26 additions and 16 deletions

View File

@ -13,7 +13,7 @@
just
magic-wormhole
mediainfo
nil
nixd
pfetch
whois
yt-dlp

View File

@ -4,6 +4,9 @@
lib,
...
}:
let
cfg = config.home-manager.users.agatha;
in
{
imports = [
../../common/home_manager/helix.nix
@ -25,6 +28,7 @@
fzf
ouch
ripgrep
(lib.mkIf (cfg.programs.starship.enable && cfg.programs.jujutsu.enable) (unstable.jj-starship))
];
programs = {
@ -36,18 +40,17 @@
settings = {
add_newline = false;
format = lib.concatStrings [
"[$hostname](bold red)"
"$character"
"[λ](yellow) $hostname"
"$directory"
];
right_format = lib.concatStrings [
"$git_branch"
" "
"$\{custom.jj}"
"$status"
"$cmd_duration"
];
character = {
success_symbol = "";
error_symbol = "[ ](purple)";
hostname = {
format = "[$hostname](bold blue) ";
};
directory = {
truncation_length = 2;
@ -56,17 +59,24 @@
style = "cyan";
read_only_style = "cyan";
};
custom.jj = {
when = "jj-starship detect";
shell = [
"jj-starship"
"--no-jj-prefix"
"--no-jj-status"
"--no-git-prefix"
"--no-git-status"
];
format = "$output ";
};
status = {
format = "[$common_meaning$maybe_int ](bright-cyan)";
disabled = false;
};
cmd_duration = {
min_time = 10000;
};
git_branch = {
format = "$symbol $branch";
symbol = "󰘬";
};
hostname = {
ssh_only = false;
format = "$hostname";
};
};
};