Add virtual indentation under headlines to align content with said headline.
Go to file
2024-04-22 10:19:09 -05:00
assets feat: initial commit 2024-04-15 11:30:02 -05:00
ftplugin feat: initial commit 2024-04-15 11:30:02 -05:00
lua/vindent refactor: improve tracking and deletion of extmarks 2024-04-22 10:19:09 -05:00
tests feat: initial commit 2024-04-15 11:30:02 -05:00
.editorconfig feat: initial commit 2024-04-15 11:30:02 -05:00
.gitignore feat: initial commit 2024-04-15 11:30:02 -05:00
LICENSE feat: initial commit 2024-04-15 11:30:02 -05:00
Makefile feat: initial commit 2024-04-15 11:30:02 -05:00
README.md feat: initial commit 2024-04-15 11:30:02 -05:00
stylua.toml refactor: format with stylua 2024-04-19 05:37:38 -05:00

Virt-Indent.nvim

Add virtual indentation to align content under headlines to their headings.

Markdown Showcase

Before: Before

After: After

Quick Start

Requirements

  • Neovim 0.10.0 or later

Installation

  • lazy.nvim
    {
      "PriceHiller/Virt-Indent.nvim",
      ft = { "org", "markdown" },
    }
    

Credits

This plugin is a module extracted from nvim-orgmode, specifically its virtual-indent module and adds additional support for more filetypes beyond org files.

  • @danilshvalov, the original creator of some of this code. I ultimately took the existing code he wrote and carried a PR with my own additions to completion and integration into nvim-orgmode.
  • @kristijanhusak, the creator/maintainer of nvim-orgmode. He has done an amazing amount of work on that plugin and much of what was done in this plugin would not have come into being without him.