41 lines
988 B
Lua
41 lines
988 B
Lua
return {
|
|
{
|
|
"nvim-mini/mini.ai",
|
|
event = "VeryLazy",
|
|
dependencies = { "nvim-treesitter/nvim-treesitter-textobjects" },
|
|
config = function()
|
|
local ai = require("mini.ai")
|
|
ai.setup({
|
|
n_lines = 500,
|
|
custom_textobjects = {
|
|
f = ai.gen_spec.treesitter({ a = "@function.outer", i = "@function.inner" }),
|
|
c = ai.gen_spec.treesitter({ a = "@class.outer", i = "@class.inner" }),
|
|
},
|
|
-- No bracket motions (QWERTZ).
|
|
mappings = { goto_left = "", goto_right = "" },
|
|
})
|
|
end,
|
|
},
|
|
{
|
|
"nvim-mini/mini.surround",
|
|
event = "VeryLazy",
|
|
-- gz prefix so the built-in `s` stays untouched.
|
|
opts = {
|
|
mappings = {
|
|
add = "gza",
|
|
delete = "gzd",
|
|
find = "gzf",
|
|
find_left = "gzF",
|
|
highlight = "gzh",
|
|
replace = "gzr",
|
|
update_n_lines = "gzn",
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"nvim-mini/mini.pairs",
|
|
event = "InsertEnter",
|
|
opts = {},
|
|
},
|
|
}
|