Browse Source

More js options

coc
Schneider 7 years ago
parent
commit
6c6ee33a45
  1. 14
      vim/ftplugin/javascript.vim

14
vim/ftplugin/javascript.vim

@ -1,8 +1,18 @@
if has("nvim") if has("nvim")
" use prettier in ALE " use prettier in ALE
let g:ale_fixers = {} let g:ale_fixers = {}
let g:ale_fixers['javascript'] = ['eslint', 'prettier']
let g:ale_javascript_prettier_options = '--no-semi --single-qoute'
let g:ale_fixers['javascript'] = ['prettier']
let g:ale_javascript_prettier_options = '--no-semi --single-quote'
let g:ale_fixers['vue'] = ['prettier']
let g:ale_vue_prettier_options = '--no-semi --single-quote'
let g:ale_fix_on_save = 1
"Add extra filetypes for deoplete tern
let g:deoplete#sources#ternjs#filetypes = [
\ 'jsx',
\ 'javascript.jsx',
\ 'vue',
\ ]
else else
" Syntastic {{{ " Syntastic {{{
"let g:syntastic_javascript_checkers = ['standard'] "let g:syntastic_javascript_checkers = ['standard']

Loading…
Cancel
Save