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

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