Skip to content

About

A Neovim plugin for aligning Markdown tables.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

md-table-align.nvim

A Neovim plugin for aligning Markdown tables.

demo

Features

  • Aligns columns to uniform width
  • Respects alignment directives from separator rows
  • Ensures minimum 1 space between pipes and content
  • Supports escaped pipes (\|) in cells
  • Pure Lua, with no external dependencies.

Installation

Use your favorite package manager.

Usage

Command

:MdTableAlign

Aligns the Markdown table containing the cursor. The plugin only aligns on command execution - it does not auto-align.

Key Mapping (Optional)

vim.keymap.set("n", "<leader>t", function()
	require("md-table-align").align_table()
end, { desc = "Align a markdown table" })

About

A Neovim plugin for aligning Markdown tables.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages