Skip to content

A neovim plugin that helps you write zola posts quickly

License

Notifications You must be signed in to change notification settings

yorik1984/zola.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

A neovim plugin that helps you write zola posts quickly

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published