Comment.nvim icon indicating copy to clipboard operation
Comment.nvim copied to clipboard

Bug: in VISUAL `comment_toggle_linewise_visual` and `gc` works blockwise if selection contains (a part of) one line

Open powerman opened this issue 1 year ago • 4 comments

I expect these two mappings must always work linewise, no matter is it VISUAL or NORMAL and no matter how much lines/symbols are selected in VISUAL.

powerman avatar Jul 08 '24 18:07 powerman

Tested on Lua file (with active LSP), not sure is it filetype/LSP dependent issue.

powerman avatar Jul 08 '24 18:07 powerman

Same, any updates on this? Anything to do with block comments doesn't seem to work, unless I use C and then line comments are block comments for some reason (unless I use the API then it does use //)

Kyren223 avatar Jul 20 '24 11:07 Kyren223

Same, any updates on this? Anything to do with block comments doesn't seem to work, unless I use C and then line comments are block comments for some reason (unless I use the API then it does use //)

Can you share the config that you use for // with C? I'm currently writing C but gcc only gives me block comment no matter the configuration.

GNITOAHC avatar Sep 06 '24 17:09 GNITOAHC

My dotfiles (and nvim config) are public, you are welcome to dig for it. @GNITOAHC

Kyren223 avatar Sep 06 '24 19:09 Kyren223