All of my important config files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

7 years ago
  1. if has("nvim")
  2. " use prettier in ALE
  3. let g:ale_fixers = {}
  4. let g:ale_fixers['javascript'] = ['prettier']
  5. let g:ale_javascript_prettier_options = '--no-semi --single-quote'
  6. let g:ale_fixers['vue'] = ['prettier']
  7. let g:ale_vue_prettier_options = '--no-semi --single-quote'
  8. let g:ale_fix_on_save = 1
  9. "Add extra filetypes for deoplete tern
  10. let g:deoplete#sources#ternjs#filetypes = [
  11. \ 'jsx',
  12. \ 'javascript.jsx',
  13. \ 'vue',
  14. \ ]
  15. else
  16. " Syntastic {{{
  17. "let g:syntastic_javascript_checkers = ['standard']
  18. let g:syntastic_javascript_checkers = ['eslint']
  19. let g:syntastic_javascript_eslint_exe = '$(npm bin)/eslint'
  20. let g:syntastic_javascript_eslint_args = ['--fix']
  21. " And also for vue
  22. let g:syntastic_vue_checkers = ['eslint']
  23. let g:syntastic_vue_eslint_exe = '$(npm bin)/eslint'
  24. let g:syntastic_vue_eslint_args = ['--fix']
  25. "}}}
  26. endif
  27. "autocmd bufwritepost *.js silent !standard --fix %
  28. set wildignore+=node_modules
  29. set tabstop=2
  30. set shiftwidth=2