summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/textobjects.lua
blob: 909ece4cc4684ddec8d0fd200dbc006509dfdca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
return {
  {
    "echasnovski/mini.ai",
    event = "VeryLazy",
    config = function()
      local ai = require("mini.ai")
      ai.setup({
        n_lines = 200,
        custom_textobjects = {
          F = ai.gen_spec.treesitter({ a = "@function.outer", i = "@function.inner" }),
          c = ai.gen_spec.treesitter({ a = "@class.outer", i = "@class.inner" }),
        },
      })
    end
  },
}