This plugin improve default php treesitter grammar.
Using this plugin, you will have
string
, heredoc
and nowdoc
strings containing SQL ;$
will have a different color than the variable name, different color for namespace prefix...)Install the plugin with your preferred package manager:
-- Lua
require("lazy").setup(
{ "gbprod/php-enhanced-treesitter.nvim" }
)
You should have Php and SQL syntax treesitter syntax installed.