2017-02-02 21:49:51 +01:00
|
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vue') == -1
|
|
|
|
|
|
|
|
" Vim filetype plugin
|
|
|
|
" Language: Vue.js
|
|
|
|
" Maintainer: Eduardo San Martin Morote
|
|
|
|
" Author: Adriaan Zonnenberg
|
|
|
|
|
2018-07-08 15:16:28 +02:00
|
|
|
if exists('b:did_ftplugin')
|
2017-02-02 21:49:51 +01:00
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
runtime! ftplugin/html.vim
|
|
|
|
|
2017-03-23 11:28:19 +01:00
|
|
|
setlocal suffixesadd+=.vue
|
|
|
|
|
2017-12-30 11:10:32 +01:00
|
|
|
if !exists('g:no_plugin_maps') && !exists('g:no_vue_maps')
|
|
|
|
nnoremap <silent> <buffer> [[ :call search('^<\(template\<Bar>script\<Bar>style\)', 'bW')<CR>
|
|
|
|
nnoremap <silent> <buffer> ]] :call search('^<\(template\<Bar>script\<Bar>style\)', 'W')<CR>
|
|
|
|
nnoremap <silent> <buffer> [] :call search('^</\(template\<Bar>script\<Bar>style\)', 'bW')<CR>
|
|
|
|
nnoremap <silent> <buffer> ][ :call search('^</\(template\<Bar>script\<Bar>style\)', 'W')<CR>
|
|
|
|
endif
|
|
|
|
|
2018-07-08 15:16:28 +02:00
|
|
|
" Run only ESLint for Vue files by default.
|
|
|
|
" linters specifically for Vue can still be loaded.
|
2018-10-08 19:00:59 +02:00
|
|
|
let b:ale_linter_aliases = get(get(g:, 'ale_linter_aliases', {}), 'vue', ['vue', 'javascript'])
|
|
|
|
let b:ale_linters = get(get(g:, 'ale_linters', {}), 'vue', ['eslint', 'vls'])
|
2017-05-17 11:07:28 +02:00
|
|
|
|
2017-02-02 21:49:51 +01:00
|
|
|
endif
|