Skip to content

sh1Nome/md-table-align.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages