Open behnamgolds opened 6 months ago
Hi, nice you got it working for far.
I finally found the time to rework the docs, since the parser is now added to the nvim-tree-sitter repo and you don't need the
parser_configs['gotmpl'] = {
install_info = {
url = 'https://github.com/ngalaiko/tree-sitter-go-template',
files = { 'src/parser.c' },
},
part anymore.
Maybe you can checkout https://github.com/ngalaiko/tree-sitter-go-template/pull/20
@behnamgolds anything else we can support you with this? Otherwise I would close the issue.
I just managed to import gotmpl to my neovim config, It just took me 5 hours to do it! But thats not the point, Im very new to neovim, so this is for noobs like me . The only thing that I am yet to figure out is how to get highlightings and language injections (html, css, js) to work inside my go templates. If you know how , please let me know.
here is my treesitter.lua config file settings (if you don't use seperate config files for your plugins, just omit the 'return {' at first line and '}' at last line)