summaryrefslogtreecommitdiffstats
path: root/ftdetect/polyglot.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-06-14 16:07:20 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-06-14 16:07:20 +0200
commit6b169212f82cbe81d1fbf3ae7f7dcea14bc5bec4 (patch)
treefc88e9fa76fadcb49587fbf9780da9147f8e9f3c /ftdetect/polyglot.vim
parent2edc785a5e21cf41960223b09bba8efc9276e777 (diff)
downloadvim-polyglot-6b169212f82cbe81d1fbf3ae7f7dcea14bc5bec4.tar.gz
vim-polyglot-6b169212f82cbe81d1fbf3ae7f7dcea14bc5bec4.zip
Add svelte support, closes #410
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r--ftdetect/polyglot.vim7
1 files changed, 7 insertions, 0 deletions
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