A collection of helpful NeoVim utilities for working with PHP Symfony in NeoVim
-- install via packer (etc)
use({ "rhydianjenkins/symfonyutils" })
-- optional setup
require('symfony_utils').setup({
-- both default to '.'
class_dirs = {
"path/to/php/classes/dir",
},
yaml_dirs = {
"path/to/config/dir",
"path/to/other/config/dir",
},
enable_telescope = true -- disabling will use vim.ui.select instead
})
-- put your cursor over a class name and jump to its yaml definition (and back again!)
vim.keymap.set("n", "gsd", "<cmd>GoToSymfonyDefinition<CR>", { desc = "[G]o to [S]ymfony [D]efinition" })