Skip to content

Latest commit

 

History

History
75 lines (50 loc) · 2.44 KB

README.md

File metadata and controls

75 lines (50 loc) · 2.44 KB

zola.nvim

W.I.P.🚧

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:

🌟 Features

  • 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:

jinja

⚡️Requirements

📦 Installation

Install via your favorite package manager:

require("lazy").setup({
    {
        "yorik1984/zola.nvim",
        dependencies = "Glench/Vim-Jinja2-Syntax",
    },
})

🚀 Usage

Just install plugin. Write zola-markdown files and enjoy by syntax highlighting 😃

⚙️ Configuration

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"}),
}

⛩️ Inspired by: