robjwells / tree-sitter-jinja2

Tree-sitter parser and NeoVim plugin for Jinja2 Templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tree-sitter-jinja2

Jinja2 grammar for tree-sitter.

Not everything may be implemented. If something isn’t working for you, file an issue or create a pull-request.

Neovim plugin

To use this grammar in Neovim for syntax highlighting, etc., you can install this repo as a plugin.

With lazy

use { "geigerzaehler/tree-sitter-jinja2" }

If you use a different package manager, run :TSInstall! jinja2 after installing the plugin.

The plugin defines the filetype jinja2 for files with the extensions .j2, .jinja, .jinja2.

It also defines the file type htmljinja for files with the extension .html.j2, .html.jinja, .html.jinja2 and .html files inside a jinja2 folder. For this filetype the HTML parser is used for the template content.

About

Tree-sitter parser and NeoVim plugin for Jinja2 Templates


Languages

Language:JavaScript 77.9%Language:Lua 15.1%Language:Scheme 5.7%Language:Shell 1.3%