From 6b169212f82cbe81d1fbf3ae7f7dcea14bc5bec4 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 14 Jun 2019 16:07:20 +0200 Subject: Add svelte support, closes #410 --- ftdetect/polyglot.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ftdetect/polyglot.vim') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 7300fc1f..6854f34f 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -1313,6 +1313,13 @@ autocmd BufNewFile,BufReadPost *.stylus set filetype=stylus augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'svelte') == -1 + augroup filetypedetect + " svelte, from svelte.vim in evanleck/vim-svelte +au BufRead,BufNewFile *.svelte setfiletype svelte + augroup end +endif + if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sxhkd') == -1 augroup filetypedetect " sxhkd, from sxhkdrc.vim in baskerville/vim-sxhkdrc -- cgit v1.2.3