nixvim: fix j/k expr keymaps by wrapping in function

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
2026-03-13 10:07:17 +09:00
co-authored by Claude Sonnet 4.6
parent fd672608d2
commit 4749a0026e
+2 -2
View File
@@ -26,13 +26,13 @@ in {
{
mode = "n";
key = "j";
action.__raw = "vim.v.count == 0 and 'gj' or 'j'";
action.__raw = "function() return vim.v.count == 0 and 'gj' or 'j' end";
options = { silent = true; expr = true; desc = "下へ移動(画面行優先)"; };
}
{
mode = "n";
key = "k";
action.__raw = "vim.v.count == 0 and 'gk' or 'k'";
action.__raw = "function() return vim.v.count == 0 and 'gk' or 'k' end";
options = { silent = true; expr = true; desc = "上へ移動(画面行優先)"; };
}