diff options
| author | Camden Cheek <camden@ccheek.com> | 2021-04-27 15:17:42 -0600 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2021-04-28 17:37:33 +0200 |
| commit | 07fc8cc20e2140d90146f9dcf9c3c776bf1c1e99 (patch) | |
| tree | 9fb36f5d4d1f15e6962fa513a782f1c7a2fc80ba /lua | |
| parent | 788d212ab3d249a673160779528fe6b03eff93a4 (diff) | |
Add go-mod tree-sitter config
Adds a tree-sitter config for go.mod files as well as highlighting
queries.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 833e5a91..5b4ece1b 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -104,6 +104,16 @@ list.go = { maintainers = {"@theHamsta", "@WinWisely268"}, } +list.gomod = { + install_info = { + url = "https://github.com/camdencheek/tree-sitter-go-mod", + branch = "main", + files = { "src/parser.c" }, + }, + maintainers = {"@camdencheek"}, + filetype = "gomod", +} + list.graphql = { install_info = { url = "https://github.com/bkegley/tree-sitter-graphql", |
