/go-enhanced-treesitter.nvim

Improve default Go tree-sitter grammar using grammar injections

Primary LanguageSchemeDo What The F*ck You Want To Public LicenseWTFPL

🔦 GO enhanced treesitter

This plugin improve default Go treesitter grammar.

✨ Features

Using this plugin, you will have

  • SQL syntax for raw_string_literal and interpreted_string_literal

demo

⚡️ Requirements

  • Neovim >= 0.7.0 (probably less but I havn't tested)

📦 Installation

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",
  },