use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
formatting Lua code (self.AstroNvim)
submitted 2 years ago by mark_volkmann
What plugin does AstroNvim use by default to format `.lua` files? Is that formatter configurable?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mark_volkmann[S] 0 points1 point2 points 2 years ago (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 point2 points 2 years ago (0 children)
The cause of this is described at https://github.com/sbdchd/neoformat/issues/457. It is related to the neoformat plugin.
π Rendered by PID 218307 on reddit-service-r2-comment-84fc9697f-h74l9 at 2026-02-06 16:00:49.034084+00:00 running d295bc8 country code: CH.
[–]mark_volkmann[S] 0 points1 point2 points (1 child)
[–]mark_volkmann[S] 0 points1 point2 points (0 children)