You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been happily using the html layer for web development, and now I'm delving into Vue.js work, so I've added the vue layer.
It works nicely when editing .vue files generated by vue create on the console.
However, when adding Vue components to a static .html file, Vue syntax is not properly detected: <script> code doesn't get autocompleted / corrected, etc.; only html is properly handled.
I can invoke vue-mode while having the .html file open, and all components are properly handled in their own contexts: <body>, <script>, style.
But when trying to navigate / highlight the html structure, there are minor annoyances: opening / closing tags highlight (<div> </div> aren't highlighted), javascript code autocompletion (e.g. document.getElementById).
I'm asking or looking for way to invoke vue-mode as a minor mode within web-mode, so that opening a .html file with Vue components gets properly handled.
As far as the Spacemacs documentation goes for the development branch, the vue layer doesn't use vue-mode from https://github.com/AdamNiederer/vue-mode : "this layer creates a derived mode called vue-mode on the fly out of web-mode to handle vue files".
The above described behavior can be tested with Spacemacsdevelop, enabling the html, vue and lsp layers:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
I've been happily using the
html
layer for web development, and now I'm delving into Vue.js work, so I've added thevue
layer.It works nicely when editing
.vue
files generated byvue create
on the console.However, when adding Vue components to a static
.html
file, Vue syntax is not properly detected:<script>
code doesn't get autocompleted / corrected, etc.; only html is properly handled.I can invoke
vue-mode
while having the.html
file open, and all components are properly handled in their own contexts:<body>
,<script>
,style
.But when trying to navigate / highlight the html structure, there are minor annoyances: opening / closing tags highlight (
<div> </div>
aren't highlighted),javascript
code autocompletion (e.g.document.getElementById
).I'm asking or looking for way to invoke
vue-mode
as a minor mode withinweb-mode
, so that opening a.html
file with Vue components gets properly handled.As far as the Spacemacs documentation goes for the
development
branch, thevue
layer doesn't usevue-mode
from https://github.com/AdamNiederer/vue-mode : "this layer creates a derived mode calledvue-mode
on the fly out ofweb-mode
to handlevue
files".The above described behavior can be tested with Spacemacs
develop
, enabling thehtml
,vue
andlsp
layers:You can save the code above as
index.html
for testing purposes.The text was updated successfully, but these errors were encountered: