Skip to content

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

Open
@softmetz

Description

@softmetz

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.

Activity

esbenboye

esbenboye commented on Mar 28, 2021

@esbenboye

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @esbenboye@softmetz

        Issue actions

          PhpDoc() vim function doesn't exists. · Issue #33 · adoy/vim-php-refactoring-toolbox