Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhpDoc() vim function doesn't exists. #33

Open
softmetz opened this issue Jul 8, 2020 · 1 comment
Open

PhpDoc() vim function doesn't exists. #33

softmetz opened this issue Jul 8, 2020 · 1 comment

Comments

@softmetz
Copy link

softmetz commented Jul 8, 2020

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.

@esbenboye
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants