From 07fc8cc20e2140d90146f9dcf9c3c776bf1c1e99 Mon Sep 17 00:00:00 2001 From: Camden Cheek Date: Tue, 27 Apr 2021 15:17:42 -0600 Subject: Add go-mod tree-sitter config Adds a tree-sitter config for go.mod files as well as highlighting queries. --- lua/nvim-treesitter/parsers.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lua') diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 833e5a918..5b4ece1b9 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", -- cgit v1.2.3-70-g09d2