This plugin improve default php treesitter grammar.
Using this plugin, you will have
- SQL syntax for
string
,heredoc
andnowdoc
strings containing SQL ; - Some improvements on highlights (
$
will have a different color than the variable name, different color for namespace prefix...)
- Neovim >= 0.9.1
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.