all repos

init.lua @ bf5f6924f13469ba4be748e7696c6ea125812eef

my nvim config
1 files changed, 10 insertions(+), 0 deletions(-)
feat(treesitter): add gotmpl support
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2023-07-22 17:49:16 +0300
Parent: 5492ab0
M lua/plugins/treesitter.lua

@@ -13,6 +13,15 @@ vim.cmd "TSUpdate"

end) end, config = function() + require("nvim-treesitter.parsers").get_parser_configs().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 = { "lua",

@@ -20,6 +29,7 @@ "go",

"gomod", "gowork", "gosum", + "gotmpl", "fish", "gitignore", "gitcommit",