mini.ai: troubles defining number with whitespace #971
-
|
Hello, I'm trying to define "number" textobject. Basically, I'm combining these two examples from the docs:
Just replacing custom_textobjects = {
U = { "()()%f[%w]%w+()[ \t]*()" },
S = { "()()%f[%d]%d+()[ \t]*()" }
}Testing on |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For me both local ai = require('mini.ai')
ai.setup({
custom_textobjects = {
U = { '()()%f[%w]%w+()[ \t]*()' },
S = { '()()%f[%d]%d+()[ \t]*()' },
},
})Make sure that |
Beta Was this translation helpful? Give feedback.
For me both
vaUandvaSselect1234and the whole whitespace to the right. This is the whole 'mini.ai' setup:Make sure that
Sis not being overridden by something else. Output of:=MiniAi.config.custom_textobjectsshould show exactly what you'd expect.