[mini.pairs] Is there a way to "open" a "close" character ? #2072
-
        Contributing guidelines
 Module(s)mini.pairs QuestionFirst, thanks for the all good plugins :) Let's say I have my cursor right before the closing  Right now, it ends up like I'd like to prevent autopairing if the next character is the closing one of the same pair. Thanks  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
| 
         Did you try the ones in this post  | 
  
Beta Was this translation helpful? Give feedback.
-
        
 That would be something like this: require('mini.pairs').setup({
  mappings = {
    -- Insert `()` if left character is not `\` and if right character is not `)`
    ['('] = { neigh_pattern = '[^\\][^)]' },
  },
})But my genuine suggestion would be to press   | 
  
Beta Was this translation helpful? Give feedback.
That would be something like this:
But my genuine suggestion would be to press
<C-v>before(if you want to prevent it from inserting the whole pair.