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.

34 lines
1.2 KiB

3 years ago
  1. let b:ale_fixers = {}
  2. let b:ale_fixers['javascript'] = ['eslint']
  3. let b:ale_fixers['typescript'] = ['eslint']
  4. let b:ale_fixers['json'] = ['eslint']
  5. let b:ale_javascript_prettier_options = '--no-semi --single-quote --tab-width 2'
  6. let b:ale_typescript_prettier_options = '--no-semi --single-quote --tab-width 2'
  7. let b:ale_fixers['vue'] = ['prettier']
  8. let b:ale_vue_prettier_options = '--no-semi --single-quote'
  9. let b:ale_fix_on_save = 1
  10. let b:ale_javascript_prettier_use_local_config = 1
  11. let b:ale_typescript_prettier_use_local_config = 1
  12. " config for local eslint
  13. g:ale_javascript_eslint_use_global = 1
  14. g:ale_javascript_eslint_executable = 'yarn'
  15. g:ale_javascript_eslint_options = 'run eslint'
  16. g:ale_typescript_eslint_use_global = 1
  17. g:ale_typescript_eslint_executable = 'yarn'
  18. g:ale_typescript_eslint_options = 'run eslint'
  19. g:ale_json_eslint_use_global = 1
  20. g:ale_json_eslint_executable = 'yarn'
  21. g:ale_json_eslint_options = 'run eslint'
  22. let g:jsdoc_formatter = 'tsdoc'
  23. "autocmd bufwritepost *.js silent !standard --fix %
  24. setlocal wildignore+=node_modules
  25. setlocal tabstop=4
  26. setlocal shiftwidth=4
  27. " Create jsdoc with ,h
  28. nnoremap <leader>h :JsDoc<CR>
  29. nnoremap <F8> Biawait <ESC>A
  30. nnoremap <F2> :Prettier<CR>