Edit and format your markdown tables with ease !
As with all line-based editors, modifying columns of tables can be difficult. This plugins provides some functions to help with that. Simply put your cursor on the table (=paragraph in vim), and call the appropriate function.
- Format : rewrite the table under the cursor following the GitHub documentation.
- Insert column
- Swap columns
- Delete columns
- Change text alignment: circle between left, right and center alignment to get the best result
Using your favorite package manager:
# With packer.vim
use 'tyrossel/MarkdownTable.nvim'
-- Prettify the whole table under the cursor:
:lua MdTableFormat<CR>
-- Delete the column under the cursor:
:lua MdTableColDelete<CR>
-- Insert a new column before the current column (where the cursor is):
:lua MdTableColInsert<CR>
-- Change the text alignment of the current column:
:lua MdTableColCircleAlign<CR>
-- Swap the current column with the one left to it:
:lua MdTableColSwap<CR>