aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/mappings.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/mappings.lua b/lua/mappings.lua
index 1853317..2837650 100644
--- a/lua/mappings.lua
+++ b/lua/mappings.lua
@@ -170,7 +170,7 @@ keymap.set("n", "<Down>", "<C-W>j")
keymap.set({ "x", "o" }, "iu", "<cmd>call text_obj#URL()<cr>", { desc = "URL text object" })
-- Text objects for entire buffer
-keymap.set({ "x", "o" }, "iB", "<cmd>call text_obj#Buffer()<cr>", { desc = "buffer text object" })
+keymap.set({ "x", "o" }, "iB", ":<C-U>call text_obj#Buffer()<cr>", { desc = "buffer text object" })
-- Do not move my cursor when joining lines.
keymap.set("n", "J", function()
@@ -179,17 +179,17 @@ keymap.set("n", "J", function()
delmarks z
]])
end, {
- desc = "join line",
+ desc = "join lines without moving cursor",
})
keymap.set("n", "gJ", function()
-- we must use `normal!`, otherwise it will trigger recursive mapping
vim.cmd([[
- normal! zmgJ`z
+ normal! mzgJ`z
delmarks z
]])
end, {
- desc = "join visual lines",
+ desc = "join lines without moving cursor",
})
-- Break inserted text into smaller undo units when we insert some punctuation chars.