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.

60 lines
1.8 KiB

3 years ago
3 years ago
3 years ago
  1. let b:ale_fixers = {}
  2. let b:ale_fixers['javascript'] = ['prettier']
  3. let b:ale_fixers['typescript'] = ['prettier']
  4. let b:ale_fixers['json'] = ['eslint']
  5. let b:ale_javascript_prettier_options = '--tab-width 4'
  6. let b:ale_typescript_prettier_options = '--tab-width 4'
  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. let g:jsdoc_lehre_path = '/home/schneider/.yarn/bin/lehre'
  24. "autocmd bufwritepost *.js silent !standard --fix %
  25. setlocal wildignore+=node_modules
  26. setlocal tabstop=4
  27. setlocal shiftwidth=4
  28. nnoremap <F8> Biawait <ESC>A
  29. nnoremap <F2> :Prettier<CR>
  30. lua <<EOF
  31. -- require'nvim-treesitter.configs'.setup {
  32. -- textobjects = {
  33. -- move = {
  34. -- enable = true,
  35. -- set_jumps = true, -- whether to set jumps in the jumplist
  36. -- goto_next_start = {
  37. -- ["]m"] = "@function.outer",
  38. -- ["]]"] = "@class.outer",
  39. -- },
  40. -- goto_next_end = {
  41. -- ["]M"] = "@function.outer",
  42. -- ["]["] = "@class.outer",
  43. -- },
  44. -- goto_previous_start = {
  45. -- ["[m"] = "@function.outer",
  46. -- ["[["] = "@class.outer",
  47. -- },
  48. -- goto_previous_end = {
  49. -- ["[M"] = "@function.outer",
  50. -- ["[]"] = "@class.outer",
  51. -- },
  52. -- },
  53. -- },
  54. -- }
  55. EOF