This plugin improve default Go treesitter grammar.
Using this plugin, you will have
- SQL syntax for
raw_string_literal
andinterpreted_string_literal
- Neovim >= 0.7.0 (probably less but I havn't tested)
Install the plugin with your preferred package manager:
-- Lua
use("hexdigest/go-enhanced-treesitter.nvim")
You should have Go and SQL syntax treesitter syntax installed.
You can do that using TSInstall
or with packer:
-- Lua
use({
"hexdigest/go-enhanced-treesitter.nvim",
requires = {
{ "derekstride/tree-sitter-sql", run = ":TSInstall sql go" },
}
})
{
"hexdigest/go-enhanced-treesitter.nvim",
build = ":TSInstall go sql",
ft = "go",
},