-
-
Notifications
You must be signed in to change notification settings - Fork 448
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
The vue hook doesn't work now #476
Comments
After you open your content file what value is set for |
Same here, not sure how long ago it stopped working. |
Does it work for any other file types for you? I don't see any special handling for |
I assume the plugin is working otherwise, I've tried different commands (cs, c$) and they all work as expected, it just does no longer recognize whether I'm in the , <script> or <style> part of the file. It always uses html style comments. |
@chris-cassner This plugin has never supported recognizing when you are in different contexts in a file. This is a long standing feature request (see #17) but not something we've ever implemented. If you had that functionality it was a different plugin providing it. There are plugins that do that far various combinations of source and embeded contexts. It is possible this plugin is blocking something else that would normally provide that, see #477 for a recent request to try to avoid getting in other plugin's way when they set comment strings. |
From the source of 'https://github.com/posva/vim-vue#how-can-i-use-nerdcommenter-in-vue-files',I make the simplest configuration:
For the vue file, I input the
<leader>cc
command, but the commentary is not the javascript style.From:
To:
On the other side, I can see the message "Changed to javascript", which means
setf javascript
actually executed.Version info:
2c87cae7
8.2 (2019 Dec 12) With Patch: 1-3204
openSUSE Tumbleweed 20210731
The text was updated successfully, but these errors were encountered: