Is it possible to configure mini.pairs to insert a pair of parentheses after a function is inserted from the completion menu? #399
-
I use hrsh7th/nvim-cmp for auto-completion and was it with another plugin - windwp/nvim-autopairs to insert a bracket pair after entering a function from the completions menu. The functionality is well documented in nvim-cmp's wiki. So, is it possible to configure mini.pairs and nvim-cmp to behave the same? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Functionality of 'mini.pairs' when it comes to actually inserting pairs is quite straightforward: it creates mapings for opening parts to insert whole pair instead of just opening symbol. Hence there is no special functions to emit pairs. Based on implementation of Sorry, but configuring compatibility with other tools is out of scope. Mostly because of expected instability of interfaces |
Beta Was this translation helpful? Give feedback.
Functionality of 'mini.pairs' when it comes to actually inserting pairs is quite straightforward: it creates mapings for opening parts to insert whole pair instead of just opening symbol. Hence there is no special functions to emit pairs.
Based on implementation of
on_confirm_done()
from 'nvim-autopairs', it seems to get necessary information from 'nvim-cmp' event data and act accord…