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

Vue comment not working properly #79

Open
shy-robin opened this issue Oct 15, 2023 · 2 comments
Open

Vue comment not working properly #79

shy-robin opened this issue Oct 15, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@shy-robin
Copy link

Minimal reproducible full config

-- Your configuration here

Description

I found a weird issue. If a vue file contains a empty <style> block, commenting will not work properly. Like this:
image
You can see all the comments start with //.

If I remove the empty <style> block or write some styles in the block, it will work fine. Like this:
image
You can see the <style> block was removed, and the comments in <template> and <script> work fine.

image
When I write some styles in <style> block, it works also.

Steps to reproduce

See above

Expected behavior

See above

Actual behavior

See above

Additional context

No response

@shy-robin shy-robin added the bug Something isn't working label Oct 15, 2023
@JoosepAlviste
Copy link
Owner

Hey! That's an interesting issue, I tried to reproduce it, but didn't manage to:

Screen.Recording.2023-10-15.at.18.22.33.mov

I'm using Comment.nvim as my commenting plugin, what are you using?

Could you also add a minimal config where the issue can be reproduced? The example here can be used as a base: https://github.com/JoosepAlviste/nvim-ts-context-commentstring/blob/main/utils/minimal_init.lua

@shy-robin
Copy link
Author

@JoosepAlviste
Thanks for your reply.
I am not using Comment.nvim. I just use the comment feature which is provided by LazyVim and it uses mini.comment.
This is the document: https://www.lazyvim.org/plugins/coding#minicomment
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants