A Neovim plugin that helps you write Zola posts quickly. Using vim-toml for TOML syntax highlight. Using Vim-Jinja2-Syntax for Jinja syntax highlight.
Optional:
- Additions Markdown highlighting to correctly syntax highlight the frontmatter in Zola posts.
Markdown example with TOML and Jinja syntax will now highlight correctly
There are highlights example file with different themes:
- Neovim ⪖ 0.6.0
- Vim-Jinja2-Syntax
- Optional:
Install via your favorite package manager:
require("lazy").setup({
{
"yorik1984/zola.nvim",
dependencies = "Glench/Vim-Jinja2-Syntax",
},
})
Just install plugin. Write zola-markdown files and enjoy by syntax highlighting 😃
Add autopairs with nvim-autopairs:
Before | Insert | After |
---|---|---|
{{┃}} |
space |
{{ ┃ }} |
{%┃} |
space |
{% ┃ %} |
local Rule = require('nvim-autopairs.rule')
local npairs = require('nvim-autopairs')
npairs.add_rules{
Rule("{{ "," ", {"markdown", "jinja.html"}),
Rule("{% "," %", {"markdown", "jinja.html"}),
}