My nvim configuration
feat: j and k behave as if there were no word wrap when there is
2 files changed, +7 -1
+1-1claude-nvim/lua/claude/runner.lua
| @@ -139,7 +139,7 @@ local function handle_event(sid, evt) | ||
| 139 | 139 | if name == "Bash" then |
| 140 | 140 | summary = input.command or "" |
| 141 | 141 | elseif name == "Grep" or name == "Glob" then |
| 142 | - summary = input.pattern or "" | |
| 142 | +summary = input.pattern or "" | |
| 143 | 143 | elseif name == "Task" then |
| 144 | 144 | summary = input.description or "" |
| 145 | 145 | 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 | ||
| 125 | 125 | -- ########################################################################## -- |
| 126 | 126 | vim.keymap.set({ "x", "o" }, "ae", ":<C-u>normal! ggVG<CR>", { desc = "around entire buffer" }) |
| 127 | 127 | |
| 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 | + | |
| 128 | 134 | -- Extras |
| 129 | 135 | easymap({ "i", "n" }, "<C-s>", "<cmd>w<cr>", "Save") |
| 130 | 136 | easymap({ "i", "n" }, "<C-p>", vim.diagnostic.open_float, "Open Diagnostic Float") |