Skip to content

Commit

Permalink
Minor changes for nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
Phantas0s committed Sep 19, 2018
1 parent d304109 commit af450b0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions nvim/UltiSnips/php_perso.snippets
Expand Up @@ -149,3 +149,6 @@ class ${1:`!p snip.rv=snip.basename`} extends UnitTestCase
}
endsnippet

snippet @var "var phpdoc" b
/** @var $0 */
endsnippet
3 changes: 1 addition & 2 deletions nvim/init.vim
Expand Up @@ -131,10 +131,9 @@ Plug 'lumiliet/vim-twig', {'for': 'twig'}
Plug 'pangloss/vim-javascript'
" need to run npm install in the folder ~/nvim/plugged/tern_for_vim
Plug 'ternjs/tern_for_vim', { 'for': ['javascript', 'javascript.jsx', 'vue'], 'do': 'npm install'}
" Plug 'othree/jspc.vim', { 'for': ['javascript', 'javascript.jsx', 'vue'] }

Plug 'leafgarland/typescript-vim'
Plug 'mhartington/nvim-typescript', {'do': './install.sh'}
" Plug 'mhartington/nvim-typescript', {'do': './install.sh'}

" For react
Plug 'mxw/vim-jsx'
Expand Down
File renamed without changes.
7 changes: 3 additions & 4 deletions nvim/pluggedconf/php/phpactor.nvimrc
@@ -1,5 +1,5 @@
" This use a global install of PHPActor and not the Vim plugin for even more
" configuration possibilities
let g:phpactorOmniError = v:true
autocmd FileType php setlocal omnifunc=phpactor#Complete

" namespace automatic insert
nnoremap <leader>u :call phpactor#UseAdd()<cr>
Expand All @@ -22,12 +22,11 @@ nnoremap <leader>rei :call phpactor#ClassInflect()<cr>
xnoremap <silent><Leader>rem :<C-U>call phpactor#ExtractMethod()<CR>
nnoremap <leader>src :call phpactor#FindReferences()<cr>

" go to definition of a method / class / whatever via Ctags
" map <leader>] :vsp <CR>:exec("tag ".expand("<cword>"))<CR>
map <leader>] :call phpactor#GotoDefinition()<CR>

function! PHPModify(transformer)
normal! ggdG
execute "read !phpactor class:transform ".expand('%').' --transform='.a:transformer
normal! ggdd
endfunction

0 comments on commit af450b0

Please sign in to comment.