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
In a svelte file type <script>. Enter. New line will have one-size indentation.
Type import foo from 'foo'. Enter.
New line will have two-sized indentation. Expected one-size indentation.
Versions:
vim v 8.2
vim-svelte plugin downloaded the 17 feb 2022.
I suspect it is nothing to do with the vim-svelte plugin. I use pangloss/vim-javascript plugin for JS. However, it seems that its up to the vim-svelte plugin to decide which plugin to use for the <script> section. If so, a hint in the documentation would be appreciated.
The text was updated successfully, but these errors were encountered:
@DmitryMyadzelets I've been trying to improve the HTML indent behavior and found that adding othree/html5.vim fixes some issues. Mind giving that a shot and letting me know how it works? I've updated the README to include html5.vim as a dependency of this plugin as well.
How to reproduce:
svelte
file type<script>
. Enter. New line will have one-size indentation.import foo from 'foo'
. Enter.Versions:
I suspect it is nothing to do with the
vim-svelte
plugin. I usepangloss/vim-javascript
plugin for JS. However, it seems that its up to thevim-svelte
plugin to decide which plugin to use for the<script>
section. If so, a hint in the documentation would be appreciated.The text was updated successfully, but these errors were encountered: