nu vi mode
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
./plugins/conform.nix
|
||||
./plugins/diffview.nix
|
||||
./plugins/grug-far.nix
|
||||
./plugins/hardtime.nix
|
||||
./plugins/harpoon.nix
|
||||
./plugins/hunk.nix
|
||||
./plugins/jj-diffconflicts.nix
|
||||
|
||||
7
modules/_neovim/plugins/hardtime.nix
Normal file
7
modules/_neovim/plugins/hardtime.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
hardtime = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -223,6 +223,18 @@
|
||||
}
|
||||
}
|
||||
])
|
||||
|
||||
# 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) " }
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -234,13 +246,12 @@
|
||||
enable = true;
|
||||
enableNushellIntegration = true;
|
||||
settings = {
|
||||
format = "$directory\${custom.scm}$hostname$line_break$character";
|
||||
format = "$directory\${custom.scm}$hostname$line_break";
|
||||
buf = {
|
||||
disabled = true;
|
||||
};
|
||||
character = {
|
||||
error_symbol = "[](bold red)";
|
||||
success_symbol = "[](bold green)";
|
||||
disabled = true;
|
||||
};
|
||||
directory = {
|
||||
truncate_to_repo = false;
|
||||
|
||||
Reference in New Issue
Block a user