mirror of https://github.com/tiyn/tidy.nvim
McAuleyPenney 4a858add91 | 3 years ago | |
---|---|---|
lua/tidy | 3 years ago | |
plugin | 3 years ago | |
readme.md | 3 years ago |
readme.md
tidy.nvim 🧹
A function and autocommand pair that removes all
- trailing whitespace
- empty lines at the end of the buffer
on every BufWritePre
.
Credits:
- Vim Tips Wiki entry for removing unwanted spaces
- ib., the author of this stack overflow answer
- This line
in gpanders/editorconfig.nvim for exposing me to the
keepjumps
andkeeppatterns
modifiers