terrortylor / nvim-comment

A comment toggler for Neovim, written in Lua
MIT License
479 stars 23 forks source link

Allows to use the same operator for normal and visual mode #52

Closed navakelvin closed 2 years ago

navakelvin commented 2 years ago

It seems you can't use the same operator for normal and visual mode.

Can you implement that?

navakelvin commented 2 years ago

Don't worry, I was able to fix it by assigning the CommentToggle command to the desired keys.

jensenojs commented 1 year ago

@navakelvin would you please kindly teach me how to do that?

jensenojs commented 1 year ago

okay, i do this by mapping <c-\> to :CommentToggle in both normal and visual mode, thanks!