small fix

This commit is contained in:
2026-03-13 12:58:12 +00:00
parent 627e5cc5cd
commit e4d859a6ae
3 changed files with 33 additions and 26 deletions

View File

@@ -440,6 +440,19 @@
action = "<C-w>="; action = "<C-w>=";
options.desc = "Equalize windows"; options.desc = "Equalize windows";
} }
# scrolling
{
mode = "n";
key = "<C-d>";
action = "<C-d>zz";
options.desc = "Scroll down and center";
}
{
mode = "n";
key = "<C-u>";
action = "<C-u>zz";
options.desc = "Scroll up and center";
}
# other # other
{ {
mode = "n"; mode = "n";

View File

@@ -224,17 +224,10 @@
} }
]) ])
# Vi mode prompt indicators (Starship can't detect vi mode in nushell, # Vi mode indicators Starship handles the character (green/red for
# so we handle the character here instead of in the character module) # success/error), nushell adds a dot for normal mode.
$env.PROMPT_INDICATOR = {|| $"(ansi green_bold)󰘧(ansi reset) " } $env.PROMPT_INDICATOR_VI_INSERT = "· "
$env.PROMPT_INDICATOR_VI_INSERT = {|| $env.PROMPT_INDICATOR_VI_NORMAL = "\e[1;38;2;40;105;131m·\e[0m "
if $env.LAST_EXIT_CODE == 0 {
$"(ansi green_bold)󰘧(ansi reset) "
} else {
$"(ansi red_bold)󰘧(ansi reset) "
}
}
$env.PROMPT_INDICATOR_VI_NORMAL = {|| $"(ansi {attr: b, fg: '#286983'})󰘧(ansi reset) " }
''; '';
}; };
@@ -246,12 +239,13 @@
enable = true; enable = true;
enableNushellIntegration = true; enableNushellIntegration = true;
settings = { settings = {
format = "$directory\${custom.scm}$hostname$line_break"; format = "$directory\${custom.scm}$hostname$line_break$character";
buf = { buf = {
disabled = true; disabled = true;
}; };
character = { character = {
disabled = true; error_symbol = "[󰘧](bold red)";
success_symbol = "[󰘧](bold green)";
}; };
directory = { directory = {
truncate_to_repo = false; truncate_to_repo = false;