summaryrefslogtreecommitdiffstats
path: root/indent/svelte.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/svelte.vim')
-rw-r--r--indent/svelte.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/indent/svelte.vim b/indent/svelte.vim
index ef0569ed..d4939adb 100644
--- a/indent/svelte.vim
+++ b/indent/svelte.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'svelte') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'svelte') == -1
" Vim indent file
" Language: Svelte 3 (HTML/JavaScript)
" Author: Evan Lecklider <evan@lecklider.com>
@@ -146,3 +143,4 @@ function! GetSvelteIndent()
return indent
endfunction
+endif