Is there anyway to add multiple bindings to same action for mini.comment #649
-
Currently using the default bindings for mini.comment, but on top of having |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sorry, 'mini.comment' is not designed for this. But you can use one thing that should work (and I think will work in the foreseeable future). Call require('mini.comment').setup()
require('mini.comment').setup({
mappings = {
comment = '<C-/>',
comment_line = '<C-/><C-/>',
comment_visual = '<C-/>',
},
}) Note that I tried that in my terminal emulator and it could not use |
Beta Was this translation helpful? Give feedback.
Sorry, 'mini.comment' is not designed for this. But you can use one thing that should work (and I think will work in the foreseeable future).
Call
setup()
twice with different mappings: one forgc
and the other for<C-/>
. Assetup()
only creates mappings and does not delete, this should work as expected. So something like this:Note that I tried that in my terminal emulator and it could not use
<C-/>
per se (although mappings are there).<M-/>
worked, though.