Skip to content

Commit

Permalink
feat(treesitter): add gotmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
nisavid committed Apr 8, 2024
1 parent 5db54c5 commit 7114d5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions after/plugin/treesitter.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
---@diagnostic disable-next-line: inject-field
parser_config.gotmpl = {
install_info = {
url = "https://github.com/ngalaiko/tree-sitter-go-template",
files = { "src/parser.c" },
},
filetype = "gotmpl",
used_by = { "gohtmltmpl", "gotexttmpl", "gotmpl", "yaml" },
}
1 change: 1 addition & 0 deletions lua/plugins/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ return {
"gitattributes",
"gitcommit",
"gitignore",
"gotmpl",
"hjson",
"htmldjango",
"http",
Expand Down

0 comments on commit 7114d5a

Please sign in to comment.