https://github.com/kicamon/markdown-table-mode.nvim
A lightweight markdown format plugin like vim-table-mode but write in lua
https://github.com/kicamon/markdown-table-mode.nvim
markdown nvim nvim-plugin
Last synced: 3 months ago
JSON representation
A lightweight markdown format plugin like vim-table-mode but write in lua
- Host: GitHub
- URL: https://github.com/kicamon/markdown-table-mode.nvim
- Owner: Kicamon
- License: mit
- Created: 2024-03-30T02:54:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-02T04:23:51.000Z (5 months ago)
- Last Synced: 2025-04-01T06:33:40.537Z (3 months ago)
- Topics: markdown, nvim, nvim-plugin
- Language: Lua
- Homepage:
- Size: 3.19 MB
- Stars: 77
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# markdown-table-mode.nvim
Formats markdown table under cursor when you leave insert mode or input `|`.### Screenshot
### Install
**lazy.nvim**```lua
{
'Kicamon/markdown-table-mode.nvim',
config = function()
require('markdown-table-mode').setup()
end
}
```**vim-plug**
```vim script
Plug 'Kicamon/markdown-table-mode.nvim'
lua require('markdown-table-mode').setup()
```### Usage
Run the `:Mtm` command to toggle markdown table mode.### Configuration
default config
```lua
require('markdown-table-mode').setup({
filetype = {
'*.md',
},
options = {
insert = true, -- when typing "|"
insert_leave = true, -- when leaving insert
pad_separator_line = false, -- add space in separator line
alig_style = 'default', -- default, left, center, right
},
})
```