vim-php-refactoring-toolbox
vim-php-refactoring-toolbox copied to clipboard
PhpDoc() vim function doesn't exists.
Thank you very much for this helpful plugin.
I have both vim-php-refactoring-toolbox
and tobyS/pdv
installed and loaded into nvim
.
When I type \da
I get the error message "PhpDoc() vim function doesn't exists."
Using ctrl-p
(native pdv keymap) everything works fine.
Further I discovered, that PhpDoc() was used in pdv version 1.
Is it possible, that this plugin is not working with version 2 of pdv
or is there a chance I made mistake.
I have not configured anything for this plugin and this snipped for pdv:
" pdv
let g:pdv_template_dir = $HOME ."/.local/share/nvim/plugged/pdv/templates_snip"
nnoremap <buffer> <C-p> :call pdv#DocumentWithSnip()<CR>
" vim-php-refactoring-toolbox
" let g:vim_php_refactoring_phpdoc = 'pdv#DocumentWithSnip'
As you can see, I tried to remap the document function, but this doesn't work either. With having this active, just the name of the method in the error message changes.
@softmetz
I got the same issue when using <leader>da
so I think my solution could also help you.
I simply added the following to my .vimrc
function! PhpDoc()
call pdv#DocumentCurrentLine()
endfunction