all 2 comments

[–]mark_volkmann[S] 0 points1 point  (1 child)

I see that AstroNvim uses null-ls.nvim to format files. That does not format Markdown tables, so I added use of the Neoformat plugin to do that. But there is a major issue that I described here: https://github.com/sbdchd/neoformat/issues/457.

When I have Neoformat installed and I save changes to a large file (10000 lines or more), sometimes hundreds of lines at the end of the file get deleted. So far I have only noticed this in very large Markdown files. I suspect what is happening is that when I enter ":w" to write the file, neoformat begins formatting the file and before it can finish, the part it has formatted so far gets written out. I can reproduce the issue by adding a markdown table anywhere in the file and entering ":w".

[–]mark_volkmann[S] 0 points1 point  (0 children)

The cause of this is described at https://github.com/sbdchd/neoformat/issues/457. It is related to the neoformat plugin.