format markdown table under cursor when you leave insert mode or input |
lazy.nvim
{
'Kicamon/markdown-table-mode.nvim',
config = function()
require('markdown-table-mode').setup()
end
}
vim-plug
Plug 'Kicamon/markdown-table-mode.nvim'
lua require('markdown-table-mode').setup()
defualt config
require('markdown-table-mode').setup({
filetype = {
'*.md',
},
options = {
insert = true, -- when typeing "|"
insert_leave = true, -- when leaveing insert
},
})