-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
92 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
return { | ||
{ | ||
"echasnovski/mini.ai", | ||
-- keys = { | ||
-- { "a", mode = { "x", "o" } }, | ||
-- { "i", mode = { "x", "o" } }, | ||
-- }, | ||
event = "VeryLazy", | ||
opts = function() | ||
local ai = require("mini.ai") | ||
return { | ||
n_lines = 500, | ||
custom_textobjects = { | ||
o = ai.gen_spec.treesitter({ | ||
a = { "@block.outer", "@conditional.outer", "@loop.outer" }, | ||
i = { "@block.inner", "@conditional.inner", "@loop.inner" }, | ||
}, {}), | ||
f = ai.gen_spec.treesitter({ a = "@function.outer", i = "@function.inner" }, {}), | ||
c = ai.gen_spec.treesitter({ a = "@class.outer", i = "@class.inner" }, {}), | ||
t = { "<([%p%w]-)%f[^<%w][^<>]->.-</%1>", "^<.->().*()</[^/]->$" }, | ||
}, | ||
} | ||
end, | ||
}, | ||
{ | ||
"echasnovski/mini.align", | ||
version = false, | ||
config = true, | ||
keys = { | ||
"ga", | ||
"gA", | ||
}, | ||
}, | ||
{ | ||
"echasnovski/mini.surround", | ||
version = false, | ||
keys = { | ||
"<localleader>sa", | ||
"<localleader>sd", | ||
"<localleader>sr", | ||
"<localleader>sf", | ||
"<localleader>sF", | ||
"<localleader>sh", | ||
"<localleader>sn", | ||
}, | ||
opts = { | ||
mappings = { | ||
add = "<localleader>sa", -- Add surrounding in Normal and Visual modes | ||
delete = "<localleader>sd", -- Delete surrounding | ||
find = "<localleader>sf", -- Find surrounding (to the right) | ||
find_left = "<localleader>sF", -- Find surrounding (to the left) | ||
highlight = "<localleader>sh", -- Highlight surrounding | ||
replace = "<localleader>sr", -- Replace surrounding | ||
update_n_lines = "<localleader>sn", -- Update `n_lines` | ||
|
||
suffix_last = "l", -- Suffix to search with "prev" method | ||
suffix_next = "n", -- Suffix to search with "next" method | ||
}, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters