Browse Source

Use all html plugins for vue, too

coc
Schneider 7 years ago
parent
commit
7cd7e8402b
  1. 1
      vim/ftplugin/javascript.vim
  2. 22
      vimrc.symlink

1
vim/ftplugin/javascript.vim

@ -1,6 +1,7 @@
"let g:syntastic_javascript_checkers = ['standard']
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_eslint_exe = '$(npm bin)/eslint'
let g:syntastic_javascript_eslint_args = ['--fix']
autocmd bufwritepost *.js silent !standard --fix %
set autoread

22
vimrc.symlink

@ -38,19 +38,19 @@ Plug 'vim-syntastic/syntastic'
Plug 'altercation/vim-colors-solarized'
" html / templates
Plug 'mattn/emmet-vim', { 'for': ['html', 'php', 'gohtmltmpl'] } " emmet support for vim - easily create markdup wth CSS-like syntax
Plug 'gregsexton/MatchTag', { 'for': ['html', 'php', 'gohtmltmpl'] } " match tags in html, similar to paren support
Plug 'othree/html5.vim', { 'for': ['html', 'php', 'gohtmltmpl'] } " html5 support
Plug 'mattn/emmet-vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue.html.javascript.css'] } " emmet support for vim - easily create markdup wth CSS-like syntax
Plug 'gregsexton/MatchTag', { 'for': ['html', 'php', 'gohtmltmpl', 'vue.html.javascript.css'] } " match tags in html, similar to paren support
Plug 'othree/html5.vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue.html.javascript.css'] } " html5 support
" JavaScript
Plug 'gavocanov/vim-js-indent', { 'for': 'javascript' } " JavaScript indent support
Plug 'moll/vim-node', { 'for': 'javascript' } " node support
Plug 'othree/yajs.vim', { 'for': 'javascript' } " JavaScript syntax plugin
Plug 'othree/es.next.syntax.vim', { 'for': 'javascript' } " ES6 and beyond syntax
Plug 'ternjs/tern_for_vim', { 'for': 'javascript', 'do': 'npm install' } " Ternjs for vim
Plug 'https://github.com/othree/jspc.vim', { 'for': 'javascript' } " Function parameter completion
Plug 'heavenshell/vim-jsdoc', { 'for': 'javascript' } " Generate JSDoc comments
Plug 'posva/vim-vue', { 'for': [ 'javascript', 'html' ] } " vue.js integration
Plug 'gavocanov/vim-js-indent', { 'for': [ 'javascript' ]} " JavaScript indent support
Plug 'moll/vim-node', { 'for': [ 'javascript', 'vue.html.javascript.css' ]} " node support
Plug 'othree/yajs.vim', { 'for': [ 'javascript', 'vue.html.javascript.css' ]} " JavaScript syntax plugin
Plug 'othree/es.next.syntax.vim', { 'for': [ 'javascript', 'vue.html.javascript.css' ]} " ES6 and beyond syntax
Plug 'ternjs/tern_for_vim', { 'for':[ 'javascript', 'vue.html.javascript.css' ], 'do': 'npm install' } " Ternjs for vim
Plug 'https://github.com/othree/jspc.vim', { 'for': [ 'javascript', 'vue.html.javascript.css' ]} " Function parameter completion
Plug 'heavenshell/vim-jsdoc', { 'for': [ 'javascript', 'vue.html.javascript.css' ]} " Generate JSDoc comments
Plug 'posva/vim-vue', { 'for': [ 'javascript', 'html', 'vue.html.javascript.css' ] } " vue.js integration
" Go
Plug 'fatih/vim-go', { 'for': [ 'go', 'html', 'gohtmltmpl' ] } " go support

Loading…
Cancel
Save