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.

28 lines
1.1 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. " {{{ phpactor
  5. " Include use statement
  6. nmap <Leader>u :call phpactor#UseAdd()<CR>
  7. " Invoke the context menu
  8. nmap <Leader>mm :call phpactor#ContextMenu()<CR>
  9. " Invoke the navigation menu
  10. nmap <Leader>nn :call phpactor#Navigate()<CR>
  11. " Goto definition of class or class member under the cursor
  12. nmap <Leader>o :call phpactor#GotoDefinition()<CR>
  13. " Show brief information about the symbol under the cursor
  14. nmap <Leader>K :call phpactor#Hover()<CR>
  15. " Transform the classes in the current file
  16. nmap <Leader>tt :call phpactor#Transform()<CR>
  17. " Generate a new class (replacing the current file)
  18. nmap <Leader>cc :call phpactor#ClassNew()<CR>
  19. " Extract expression (normal mode)
  20. nmap <silent><Leader>ee :call phpactor#ExtractExpression(v:false)<CR>
  21. " Extract expression from selection
  22. vmap <silent><Leader>ee :<C-U>call phpactor#ExtractExpression(v:true)<CR>
  23. " Extract method from selection
  24. vmap <silent><Leader>em :<C-U>call phpactor#ExtractMethod()<CR>
  25. "}}}
  26. nnoremap <leader>h :call PhpDocSingle()<CR>