.files/nix/homeModules/common/starship/starship.toml

135 lines
3 KiB
TOML

"$schema" = 'https://starship.rs/config-schema.json'
format = """
$status$hostname$directory$username\
$nix_shell\
$golang$haskell$rust$typst$python
$character
"""
right_format = """
$cmd_duration\
$time\
$git_state$git_branch$git_commit$git_status
"""
#################### Theme ####################
palette = 'milou'
[palettes.milou]
black = "#073642" # .hs-identifier
grey = '#a0a1a7'
cyan = "#2aa198" # .hs-pragma
blue = "#268bd2" # .hs-number
magenta = "#d33682" # .hs-operator
green = "#859900" # .hs-cpp
orange = "#cb4b16" # .hs-char
red = "#af005f" # .hs-special
purple = "#5f5faf" # .hs-type
cursor = "#f0e5c9"
#################### Theme ####################
[hostname]
ssh_only = true
style = 'bold'
format = '[$hostname]($style):'
[username]
style_root = 'bold'
style_user = 'grey'
format = '( [\($user\)]($style))'
[character]
success_symbol = '[\$](black)' # Insert
error_symbol = '[\$](black)' # Insert
vimcmd_symbol = '[N](grey)' # Normal
vimcmd_replace_symbol = '[R](grey)' # Replace
vimcmd_replace_one_symbol = '[R](grey)' # Replace
vimcmd_visual_symbol = '[V](grey)' # Visual
[directory]
truncation_length = 4
truncate_to_repo = false
style = 'fg:black bg:cursor'
format = '[$path]($style)( [$read_only]($read_only_style))'
read_only = ''
read_only_style = 'red'
truncation_symbol = '…/'
[status]
format = '([\[$status\]](bold red) )'
disabled = false
#################### Language modules ####################
# Note that the padding goes on the *left* side
[nix_shell]
# https://github.com/starship/starship/blob/073e16b4926009565c06897aabda7f807c63c5a0/src/modules/nix_shell.rs#L66-L70
# apparently `$name` and `$unknown_msg` are mutually exclusive
format = '[ λ]($style)'
style = 'bold #7e7eff'
[python]
style = 'bold #3572A5'
format = '[ $virtualenv]($style)'
[golang]
format = "[ $version]($style)"
style = "bold #00ADD8"
[rust]
format = '[ $version]($style)'
style = "bold #dea584"
[typst]
format = '[ $version]($style)'
style = "bold #239dad"
# kinda slow tbh
# [scala]
# format = '[ $version]($style)'
# style = '#c22d40'
# too useless
# [java]
# format = '[ $version]($style)'
# style = 'bold #b07219'
[haskell]
format = '[ $ghc_version]($style)'
style = "bold #5e5086"
#################### Language modules ####################
[time]
disabled = false
format = '[$time]($style) '
style = "blue"
#################### Right hand side ####################
[cmd_duration]
min_time = 60_000
show_milliseconds = true
style = 'blue'
format = '([$duration]($style) )'
[git_state]
style = 'bold red'
format = '\([$state( $progress_current/$progress_total)]($style)\) '
[git_branch]
symbol = ''
style = 'black'
format = '[$symbol$branch(:$remote_branch)]($style)'
[git_commit]
style = 'cyan'
format = '[\(](black)[$hash$tag]($style)[\)](black)'
[git_status]
ahead = '⇡$count'
behind = '⇣$count'
diverged = '⇕⇡$ahead_count⇣$behind_count'
style = 'bold cyan'
format = '([\[](black)[$all_status$ahead_behind]($style)[\]](black))'
#################### Right hand side ####################