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>=";
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
{
mode = "n";

View File

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