vim-svelte-plugin
vim-svelte-plugin copied to clipboard
postcss sss Sugars
Hello i try to use SugarSS https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/preprocess.md
How can i tell to the plugin to use sass syntax when <script lang="sss" > is used ?
Thank you !
Hi there,
You can add a svelte syntax file svelte.vim with content
syntax region cssSassSvelteStyle fold
\ start=+<style[^>]*lang="sss"[^>]*>+
\ end=+</style>+
\ keepend contains=@SassSyntax,svelteTag
The location is typically one of these:
- ~/.vim/syntax/ (Unix-like systems)
- $HOME/vimfiles/syntax/ (Windows)
- ~/.config/nvim/syntax/ (Neovim)