irongit

My nvim configuration

feat: j and k behave as if there were no word wrap when there is

huncholanehuncholaneauthored
parent 09f8f54commit 9f7084fe1324d4d2e0adb51c27aedc65d43a86f1Browse files

2 files changed, +7 -1

+1-1claude-nvim/lua/claude/runner.lua
@@ -139,7 +139,7 @@ local function handle_event(sid, evt)
139139 if name == "Bash" then
140140 summary = input.command or ""
141141 elseif name == "Grep" or name == "Glob" then
142- summary = input.pattern or ""
142+summary = input.pattern or ""
143143 elseif name == "Task" then
144144 summary = input.description or ""
145145 elseif name == "WebFetch" or name == "WebSearch" then
+6-0lua/keymaps.lua
@@ -125,6 +125,12 @@ vim.keymap.set("n", "gc", require("telescope.builtin").grep_string, { desc= "Tel
125125 -- ########################################################################## --
126126 vim.keymap.set({ "x", "o" }, "ae", ":<C-u>normal! ggVG<CR>", { desc = "around entire buffer" })
127127
128+-- ########################################################################## --
129+-- -Visual Line Motion (respect wrap)
130+-- ########################################################################## --
131+vim.keymap.set({ "n", "v" }, "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
132+vim.keymap.set({ "n", "v" }, "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
133+
128134 -- Extras
129135 easymap({ "i", "n" }, "<C-s>", "<cmd>w<cr>", "Save")
130136 easymap({ "i", "n" }, "<C-p>", vim.diagnostic.open_float, "Open Diagnostic Float")