/donutlify.nvim

Format your text in the shape of a donut! 🍩 (Inside your favorite editor)

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

🍩 Donutlify.nvim

Donutlify is a fun Neovim plugin that transforms your buffer text into the shape of a donut! The usage is the same as center command (see :h :center).

The plugin creates as many donuts as possible with the given diameter and crafts a smaller donut from any remaining text. Bring some sweetness to your coding with Donutlify! 🍩

❓How to use

:[range]Donutlify [diameter] Combine lines in [range] in the shape of the donut with [diameter] characters in diameter (by default 'textwidth' or 80 when 'textwidth' is 0). If there aren't enough characters to create a donut of the preferred diameter, create the donut with the largest possible diameter. If [range] is not specified, format the entire buffer.

📺 Showcase

donutlify_showcase.mp4

📋 Installation

lazy:

{
    "NStefan002/donutlify.nvim",
    lazy = false,
    version = "*",
}

packer:

use({ "NStefan002/donutlify.nvim", tag = "*" })

rocks.nvim

:Rocks install donutlify.nvim

Note

  • There is no need to call the setup function, only call it if you need to change some options
  • There is no need to lazy load donutlify, it lazy loads by default.

👀 See also