Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle comment on word doesn't work #77

Closed
darkangel-ua opened this issue Nov 21, 2021 · 3 comments
Closed

Toggle comment on word doesn't work #77

darkangel-ua opened this issue Nov 21, 2021 · 3 comments
Labels
invalid This doesn't seem right

Comments

@darkangel-ua
Copy link

darkangel-ua commented Nov 21, 2021

I think it worked before but now any time I do gciw it comments the word and next gciw will generate nested comment instead of removing previous one. Is it just my issue? I'm trying that on lua and cpp files with the same results.

@numToStr
Copy link
Owner

This is an expected behaviour. You might wanna read this https://www.reddit.com/r/neovim/comments/q35328/commentnvim_simple_and_powerful_comment_plugin/hfra1vo/. I've already explained this and there is nothing I can do about it right now.

@numToStr numToStr added the invalid This doesn't seem right label Nov 21, 2021
@darkangel-ua
Copy link
Author

Oh, I see... Thanks for explanation. I've figured out that the behavior I wanted to achieve easily can be done by gciC where iC mapped to @comment.outer treesitter text object.

@numToStr
Copy link
Owner

I've figured out that the behavior I wanted to achieve easily can be done by gciC where iC mapped to @comment.outer treesitter text object.

Ok, that's freakin cool. I never thought of that. Thanks for the tip 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants