How to properly setup mini.ai
and mini.extra
together with lazy.nvim
?
#1759
Answered
by
iton0
alefbragin
asked this question in
Q&A
-
How to properly setup I have this setup in return {
"echasnovski/mini.ai",
version = false,
event = "VeryLazy",
dependencies = {
{
"echasnovski/mini.extra",
version = false,
},
},
opts = {
mappings = {
around = "a",
inside = "i",
},
custom_textobjects = {
e = require('mini.extra').gen_ai_spec.buffer(),
},
},
} and get error:
But if I put |
Beta Was this translation helpful? Give feedback.
Answered by
iton0
Sep 25, 2024
Replies: 1 comment 1 reply
-
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,
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
alefbragin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems like it is something to do with the opts spec. I replaced it with config and this worked: