[mini.pairs] exiting spaced pairs #272
-
I have the following mapping, which allows me to pad pairs (e.g., mappings = {
[" "] = {
action = "closeopen",
pair = " ",
neigh_pattern = "[%(%[{][%)%]}]",
},
} This works great and allows me to use another This will also allow me to convert the above rule from Is this at all possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Unfortunately, no. Not with 'mini.pairs'. It is designed to know only about 1 character neighborhood and not further. You can try to make custom buffer mappings though, which will do as you suggest on appropriate wider neighborhood and utilize |
Beta Was this translation helpful? Give feedback.
Unfortunately, no. Not with 'mini.pairs'. It is designed to know only about 1 character neighborhood and not further. You can try to make custom buffer mappings though, which will do as you suggest on appropriate wider neighborhood and utilize
MiniPairs.close()
otherwise.