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.

33 lines
1.2 KiB

  1. let g:ale_php_phpstan_level = 'max'
  2. let g:ale_fixers={
  3. \'javascript': ['prettier'],
  4. \'json': ['prettier'],
  5. \'php': ['prettier'],
  6. \'blade': ['prettier'],
  7. \}
  8. let g:ale_fix_on_save=1
  9. " {{{ phpactor
  10. " Include use statement
  11. nmap <Leader>u :call phpactor#UseAdd()<CR>
  12. " Invoke the context menu
  13. nmap <Leader>mm :call phpactor#ContextMenu()<CR>
  14. " Invoke the navigation menu
  15. nmap <Leader>nn :call phpactor#Navigate()<CR>
  16. " Goto definition of class or class member under the cursor
  17. nmap <Leader>o :call phpactor#GotoDefinition()<CR>
  18. " Show brief information about the symbol under the cursor
  19. nmap <Leader>K :call phpactor#Hover()<CR>
  20. " Transform the classes in the current file
  21. nmap <Leader>tt :call phpactor#Transform()<CR>
  22. " Generate a new class (replacing the current file)
  23. nmap <Leader>cc :call phpactor#ClassNew()<CR>
  24. " Extract expression (normal mode)
  25. nmap <silent><Leader>ee :call phpactor#ExtractExpression(v:false)<CR>
  26. " Extract expression from selection
  27. vmap <silent><Leader>ee :<C-U>call phpactor#ExtractExpression(v:true)<CR>
  28. " Extract method from selection
  29. vmap <silent><Leader>em :<C-U>call phpactor#ExtractMethod()<CR>
  30. "}}}
  31. nnoremap <leader>h :call PhpDocSingle()<CR>