Skip to content

Commit 107db1a

Browse files
committed
chore(docs): made the installation documentation easier to understand
1 parent cf69460 commit 107db1a

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,18 @@ Give your right-pinky a workout and install `cursor-text-objects.nvim` today!
7777
{
7878
"ColinKennedy/cursor-text-objects.nvim",
7979
config = function()
80-
local down_description = "Operate from your current cursor to the end of some text-object."
81-
local up_description = "Operate from the start of some text-object to your current cursor."
82-
83-
vim.keymap.set("o", "[", "<Plug>(cursor-text-objects-up)", { desc = up_description })
84-
vim.keymap.set("o", "]", "<Plug>(cursor-text-objects-down)", { desc = down_description })
85-
vim.keymap.set("x", "[", "<Plug>(cursor-text-objects-up)", { desc = up_description })
86-
vim.keymap.set("x", "]", "<Plug>(cursor-text-objects-down)", { desc = down_description })
80+
vim.keymap.set(
81+
{"o", "x"},
82+
"[",
83+
"<Plug>(cursor-text-objects-up)",
84+
{ desc = "Run from your current cursor to the end of the text-object." }
85+
)
86+
vim.keymap.set(
87+
{"o", "x"},
88+
"]",
89+
"<Plug>(cursor-text-objects-down)",
90+
{ desc = "Run from your current cursor to the end of the text-object." }
91+
)
8792
end,
8893
version = "v1.*",
8994
}

0 commit comments

Comments
 (0)