Skip to content

Commit c63bdfe

Browse files
committed
add cursor-text-objects
1 parent 6fd7142 commit c63bdfe

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

home/nvim/lua/plugins.lua

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,26 @@ local function inject_all(specs)
2929
end
3030

3131
return inject_all({
32+
{
33+
"ColinKennedy/cursor-text-objects.nvim",
34+
lazy = false,
35+
config = function()
36+
vim.keymap.set(
37+
{ "o", "x" },
38+
"[",
39+
"<Plug>(cursor-text-objects-up)",
40+
{ desc = "Run from your current cursor to the end of the text-object." }
41+
)
42+
vim.keymap.set(
43+
{ "o", "x" },
44+
"]",
45+
"<Plug>(cursor-text-objects-down)",
46+
{ desc = "Run from your current cursor to the end of the text-object." }
47+
)
48+
end,
49+
version = "v1.*",
50+
},
51+
3252
{
3353
"saghen/blink.cmp",
3454
lazy = false, -- it handles itself and is an integral part anyhow

0 commit comments

Comments
 (0)