Plugin for neovim, which will help in creating dock blocks, generating getters and setters for the PHP programming language
Generate all docblock for this class (While it only works with methods)
Generate getter and setter for class
phphelper uses the nvim-treesitter
plugin. You can install both by doing (vim-plug):
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'curkan/phphelper'
Connect the plugin
require "phphelper"
There are two key bindings provided by default (create php docblock):
<leader>p
you can override:
vim.api.nvim_set_keymap('n', '<leader>p', '<cmd>:PHPAddDocblock()<cr>', default_opts)
Commands:
:PHPAddDocblock
:PHPGenerateAllDocblock
:PHPGenerateGetterAndSetter
:PHPGenerateGetter
:PHPGenerateSetter