Files
nvim/lua/plugins/editing.lua
T
johannes 9b0446c5f6 feat: initial commit
- basic config according to spec
2026-11-05 15:04:29 +01:00

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 = {},
},
}