Skip to content

How to properly setup mini.ai and mini.extra together with lazy.nvim? #1759

Answered by iton0
alefbragin asked this question in Q&A
Discussion options

You must be logged in to vote

It seems like it is something to do with the opts spec. I replaced it with config and this worked:

return {
  'echasnovski/mini.ai',
  version = false,
  event = 'VeryLazy',
  dependencies = {
    {
      'echasnovski/mini.extra',
      version = false,
    },
  },
  config = function()
    require('mini.ai').setup({
      mappings = {
        around = 'a',
        inside = 'i',
      },
      custom_textobjects = {
        e = require('mini.extra').gen_ai_spec.buffer(),
      },
    })
  end,
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alefbragin
Comment options

Answer selected by alefbragin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants