leafOfTree/vim-svelte-plugin

Indentation Issue

Closed this issue · 2 comments

Sorry if this is already in the docs and I missed it, my vim setting for indentation using tab is 4 chars but inside svelte files and TypeScript files inside my svelte directory it uses 8 chars. Is there a config I'm missing? Thanks in advance, this is a great plugin :D.

Thank you for the compliment :).
You can specify the indentation for svelte files in your vim setting as below

autocmd FileType svelte setlocal shiftwidth=4

Thank you for the compliment :). You can specify the indentation for svelte files in your vim setting as below

autocmd FileType svelte setlocal shiftwidth=4

Thank you so much. It works now. I'm new to vim and learning the basic config and settings, thanks for helping me out :D.