small fix
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -10,18 +10,18 @@
|
||||
rev = "800c4f891f5d940f2805780a39872a0207b5a446";
|
||||
hash = "sha256-3xyZux5S8ThBsi7AC4AWnd2h2LEI5L+I5Am2PNWKu64=";
|
||||
};
|
||||
doCheck = false;
|
||||
postPatch = ''
|
||||
# Widen sign column and move border further left for more padding
|
||||
sed -i "s/signcolumn', 'yes'/signcolumn', 'yes:2'/" lua/opencode/ui/output_window.lua
|
||||
sed -i "s/, -3)/, -5)/g" lua/opencode/ui/formatter.lua
|
||||
sed -i "s/win_col = -3/win_col = -5/g" lua/opencode/ui/formatter.lua
|
||||
# Fix off-by-one: user border starts 1 line too early (bleeds into header empty line)
|
||||
sed -i 's/start_line = output:get_line_count() *$/start_line = output:get_line_count() + 1/' lua/opencode/ui/formatter.lua
|
||||
# Fix file mention border starting 1 line too early
|
||||
sed -i 's/file_line - 1, file_line/file_line, file_line/' lua/opencode/ui/formatter.lua
|
||||
'';
|
||||
};
|
||||
doCheck = false;
|
||||
postPatch = ''
|
||||
# Widen sign column and move border further left for more padding
|
||||
sed -i "s/signcolumn', 'yes'/signcolumn', 'yes:2'/" lua/opencode/ui/output_window.lua
|
||||
sed -i "s/, -3)/, -5)/g" lua/opencode/ui/formatter.lua
|
||||
sed -i "s/win_col = -3/win_col = -5/g" lua/opencode/ui/formatter.lua
|
||||
# Fix off-by-one: user border starts 1 line too early (bleeds into header empty line)
|
||||
sed -i 's/start_line = output:get_line_count() *$/start_line = output:get_line_count() + 1/' lua/opencode/ui/formatter.lua
|
||||
# Fix file mention border starting 1 line too early
|
||||
sed -i 's/file_line - 1, file_line/file_line, file_line/' lua/opencode/ui/formatter.lua
|
||||
'';
|
||||
};
|
||||
in {
|
||||
programs.nixvim = {
|
||||
autoCmd = [
|
||||
|
||||
@@ -224,18 +224,11 @@
|
||||
}
|
||||
])
|
||||
|
||||
# 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 "
|
||||
'';
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user