From fd0ddda95e879b8f1924fb65136a5faa306ffa9b Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 27 May 2022 13:00:45 +0200 Subject: vim: add gotmpl tree-sitter support --- .vim/lua/plugins.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.vim/lua/plugins.lua') diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua index 9efd513..96b1e89 100644 --- a/.vim/lua/plugins.lua +++ b/.vim/lua/plugins.lua @@ -244,6 +244,7 @@ return require('packer').startup({function() 'norg_meta', 'norg_table', 'hare', + 'gotmpl', } use {'nvim-treesitter/nvim-treesitter', -- {{{ run = ':TSUpdate', @@ -281,6 +282,14 @@ return require('packer').startup({function() files = {'src/parser.c'}, } } + tsconf.gotmpl = { + install_info = { + url = 'https://github.com/ngalaiko/tree-sitter-go-template', + files = {'src/parser.c'}, + }, + filetype = 'gotmpl', + used_by = {'gohtmltmpl', 'gotexttmpl', 'gotmpl', 'yaml'}, + } require('nvim-treesitter.configs').setup { ensure_installed = _G.treesitter_enabled, -- cgit 1.4.1