So pressing ,( when selecting a word turns it into ()word) instead of (word). How do I do vim’s equivalent inoremap command that won’t evaluate the auto-pairs mapping?
Kakoune doesn’t have recursive mappings, so all Kakoune mappings are non-recursive. However, when a hook event occurs, all the hooks registered to that event will fire. Looking at the source to auto-pairs, we see that it uses the InsertChar and InsertDelete hooks:
Because these are hooks, not mappings, they’ll trigger every time a matching character is inserted or deleted in insert mode, even if that character was produced by a mapping. However, Kakoune provides a way to temporarily disable hooks when entering insert mode, with the \ prefix. If you enter insert mode with i, hooks work as normal, but if you enter insert mode with \i then hooks are disabled (you’ll see [no-hooks] in the status bar).
Therefore, a mapping like this will probably do what you want: