[mini.ai] How to add chinese bracket as textObject? #2027
-
Contributing guidelines
Module(s)mini.ai Questionthis is my options, and i want to use vab, and vib, to select chinese bracket as a textobject, but |
Beta Was this translation helpful? Give feedback.
Answered by
drowning-cat
Sep 28, 2025
Replies: 1 comment 2 replies
-
|
In your case, I’d do it this way, though maybe @echasnovski has a better solution: Warning It seems your quotes are treated as multiple chars, so b = {
{
MiniAi.gen_spec.pair("【", "】"),
MiniAi.gen_spec.pair("(", ")", { type = "balanced" }),
MiniAi.gen_spec.pair("[", "]", { type = "balanced" }),
MiniAi.gen_spec.pair("{", "}", { type = "balanced" }),
},
}, |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
echasnovski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In your case, I’d do it this way, though maybe @echasnovski has a better solution:
Warning
It seems your quotes are treated as multiple chars, so
%b【】doesn’t work in Lua.