tree-sitter-jinja2
Tree-sitter grammar for Jinja2 (by theHamsta)
Vim-Jinja2-Syntax
An up-to-date jinja2 syntax file. (by Glench)
tree-sitter-jinja2 | Vim-Jinja2-Syntax | |
---|---|---|
3 | 3 | |
11 | 340 | |
- | - | |
10.0 | 10.0 | |
about 3 years ago | almost 3 years ago | |
C | Vim Script | |
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tree-sitter-jinja2
Posts with mentions or reviews of tree-sitter-jinja2.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-23.
-
Any treesitter plugin for jinja2?
Thank you, did you try using theHamsta/tree-sitter-jinja2? I would be happy about any neovim dotfiles that show how it is added to treesitter.
-
FeMaco now supports language injections in any language (including inline)
Ah I see! I think it should be done the other way around, ie you should use a parser for jinja and inject SQL. Since the above is not valid SQL. There are some WIP jinja parsers (for example this or this) although I haven't tried them.
Vim-Jinja2-Syntax
Posts with mentions or reviews of Vim-Jinja2-Syntax.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-23.
-
Any treesitter plugin for jinja2?
this is a WIP treesitter syntax for Jinja2. This is a plugin for regex based highlight for Jinja2 and this plugin uses dotted filetypes to embed Jinja syntax
- Nunjucks or other templating syntax
-
Anyone having correct Twig highlights with lua-filetype ?
Yeah sort of! I'm using a jinja syntax file and force twig files to use it. The highlights suits me for my needs. Here is how I did it, at the root of my nvim config, I put theses two files - syntax/jinja.vim download it from here https://github.com/Glench/Vim-Jinja2-Syntax/blob/master/syntax/jinja.vim - after/syntax/twig.lua vim.opt_local.syntax = "jinja" And to comment in twig I added another one here - after/plugin/twig.lua vim.opt_local.commentstring = "{#%s#}"
What are some alternatives?
When comparing tree-sitter-jinja2 and Vim-Jinja2-Syntax you can also consider the following projects:
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
packer.nvim - A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
jinja.vim - Filetype detection an syntax support for Jinja templates.
nvim-FeMaco.lua - Catalyze your Fenced Markdown Code-block editing!
tree-sitter-jinja2