small fix
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -10,18 +10,18 @@
|
|||||||
rev = "800c4f891f5d940f2805780a39872a0207b5a446";
|
rev = "800c4f891f5d940f2805780a39872a0207b5a446";
|
||||||
hash = "sha256-3xyZux5S8ThBsi7AC4AWnd2h2LEI5L+I5Am2PNWKu64=";
|
hash = "sha256-3xyZux5S8ThBsi7AC4AWnd2h2LEI5L+I5Am2PNWKu64=";
|
||||||
};
|
};
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Widen sign column and move border further left for more padding
|
# 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/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/, -3)/, -5)/g" lua/opencode/ui/formatter.lua
|
||||||
sed -i "s/win_col = -3/win_col = -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)
|
# 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
|
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
|
# 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
|
sed -i 's/file_line - 1, file_line/file_line, file_line/' lua/opencode/ui/formatter.lua
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
autoCmd = [
|
autoCmd = [
|
||||||
|
|||||||
@@ -224,18 +224,11 @@
|
|||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
||||||
# 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) " }
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user