diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-08 20:06:48 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-08 20:06:48 +0200 |
commit | 1adf2a5f922742b5fc71a3c308f67a7cb2d6d7eb (patch) | |
tree | 178420828111ddfa0972711d9e809284fa029794 /.config/nvim/init.lua | |
parent | 9b2999ec3c60da7865c4e4f478973c276a9bed6f (diff) |
nvim: Add treesitter support for go templates
Diffstat (limited to '.config/nvim/init.lua')
-rw-r--r-- | .config/nvim/init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 8359d47..eae8bb9 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -171,6 +171,7 @@ require 'paq' { 'luckasRanarison/tree-sitter-hypr', 'mattn/emmet-vim', 'neovim/nvim-lspconfig', + 'ngalaiko/tree-sitter-go-template', 'nvim-lua/plenary.nvim', 'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope-ui-select.nvim', @@ -270,6 +271,13 @@ treeconfs.gsp = { }, filetype = 'gsp', } +treeconfs.gotmpl = { + install_info = { + url = 'https://github.com/ngalaiko/tree-sitter-go-template', + files = { 'src/parser.c' }, + }, + filetype = 'gotmpl', +} require('nvim-treesitter.install').prefer_git = true require('nvim-treesitter.configs').setup { |