summaryrefslogtreecommitdiffstats
path: root/ftplugin/svelte.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-07-26 10:20:08 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-07-26 10:20:08 +0200
commit56121b4e27cb48efb17be55a969b2f0d725266f8 (patch)
tree30df0f431705cdb72b2014177ce3f0655287a81c /ftplugin/svelte.vim
parent9c3c0bc082e0d58d15dc6f24d8a335931417e2f0 (diff)
downloadvim-polyglot-56121b4e27cb48efb17be55a969b2f0d725266f8.tar.gz
vim-polyglot-56121b4e27cb48efb17be55a969b2f0d725266f8.zip
Update
Diffstat (limited to 'ftplugin/svelte.vim')
-rw-r--r--ftplugin/svelte.vim47
1 files changed, 0 insertions, 47 deletions
diff --git a/ftplugin/svelte.vim b/ftplugin/svelte.vim
deleted file mode 100644
index 3c3df23a..00000000
--- a/ftplugin/svelte.vim
+++ /dev/null
@@ -1,47 +0,0 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'svelte') == -1
-
-" Vim filetype plugin
-" Language: Svelte 3 (HTML/JavaScript)
-" Author: Evan Lecklider <evan@lecklider.com>
-" Maintainer: Evan Lecklide <evan@lecklider.com>
-" URL: https://github.com/evanleck/vim-svelte
-if (exists('b:did_ftplugin'))
- finish
-endif
-let b:did_ftplugin = 1
-
-" Matchit support
-if exists('loaded_matchit') && !exists('b:match_words')
- let b:match_ignorecase = 0
-
- " In order:
- "
- " 1. Svelte control flow keywords.
- " 2. Parens.
- " 3-5. HTML tags pulled from Vim itself.
- "
- " https://github.com/vim/vim/blob/5259275347667a90fb88d8ea74331f88ad68edfc/runtime/ftplugin/html.vim#L29-L35
- let b:match_words =
- \ '#\%(if\|await\|each\)\>:\:\%(else\|catch\|then\)\>:\/\%(if\|await\|each\)\>,' .
- \ '{:},' .
- \ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' .
- \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' .
- \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
-endif
-
-" ALE fixing and linting.
-if exists('g:loaded_ale')
- if !exists('b:ale_fixers')
- let b:ale_fixers = ['eslint', 'prettier', 'prettier_standard']
- endif
-
- if !exists('b:ale_linter_aliases')
- let b:ale_linter_aliases = ['css', 'javascript']
- endif
-
- if !exists('b:ale_linters')
- let b:ale_linters = ['stylelint', 'eslint']
- endif
-endif
-
-endif