From 4749a0026efd625891039944e107542d28683997 Mon Sep 17 00:00:00 2001 From: moons-14 Date: Fri, 13 Mar 2026 10:07:17 +0900 Subject: [PATCH] nixvim: fix j/k expr keymaps by wrapping in function Co-Authored-By: Claude Sonnet 4.6 --- modules/home/nixvim/keymaps.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/home/nixvim/keymaps.nix b/modules/home/nixvim/keymaps.nix index 7bcc90e..b21b83b 100644 --- a/modules/home/nixvim/keymaps.nix +++ b/modules/home/nixvim/keymaps.nix @@ -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 = "上へ移動(画面行優先)"; }; }