summary refs log tree commit diff
path: root/.vim/lua
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2022-05-27 13:00:45 +0200
committerRobert Günzler <r@gnzler.io>2022-05-27 13:16:15 +0200
commitfd0ddda95e879b8f1924fb65136a5faa306ffa9b (patch)
treeb757cc185bdece6af61af47d7735ed97a2f17bad /.vim/lua
parent4ffb2681870dba1f9e09ef734ace2c90a03b983c (diff)
vim: add gotmpl tree-sitter support
Diffstat (limited to '.vim/lua')
-rw-r--r--.vim/lua/plugins.lua9
1 files changed, 9 insertions, 0 deletions
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,