Skip to content

Commit 0b46739

Browse files
committed
plug: vue: install coc-vetur,posva/vim-vue
Anticipating posva/vim-vue#133 which should resolve perf issues with this plugin coc-vetur provides the autocomplete for Vue SFC.
1 parent ab926d8 commit 0b46739

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

ftdetect/ftdetect.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ if has('autocmd')
1818
\ 'coffee': ['*.cson'],
1919
\ 'csv': ['*.csv'],
2020
\ 'dosini': ['.npmrc'],
21-
\ 'html': ['*.vue'],
2221
\ 'json': ['*.json', '.babelrc', '.bowerrc', 'composer.lock'],
2322
\ 'ruby': ['Vagrantfile'],
2423
\ 'pandoc': ['*.pandoc'],
25-
\ 'perl': ['cpanfile']
24+
\ 'perl': ['cpanfile'],
25+
\ 'vue': ['*.vue']
2626
\ }
2727

2828
for s:list in items(s:globs)

shared.vim

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,14 @@ if has('autocmd')
572572
" Primary
573573
let s:base_cond = has('nvim-0.3.1') && executable('node') && executable('yarn')
574574
call plug#('neoclide/coc-neco', s:base_cond ? {} : s:plug_disable)
575+
let s:base_conf = {'tag': 'v0.0.64'}
576+
function! s:base_conf.do(info) dict
577+
if a:info.status !=# 'installed' && !a:info.force
578+
return
579+
endif
580+
call coc#util#install()
581+
call coc#util#install_extension('coc-vetur')
582+
endfunction
575583
call plug#('neoclide/coc.nvim', s:base_cond ? {
576584
\ 'do': function('coc#util#install'),
577585
\ 'tag': 'v0.0.64'
@@ -627,6 +635,8 @@ if has('autocmd')
627635
Plug 'leafgarland/typescript-vim'
628636
Plug 'mxw/vim-jsx'
629637
let g:jsx_ext_required = 1
638+
Plug 'posva/vim-vue'
639+
let g:vue_disable_pre_processors = 1
630640

631641
" Database
632642
Plug 'exu/pgsql.vim'

0 commit comments

Comments
 (0)