A small Neovim plugin to remove trailing whitespace and empty lines at end of file on every save
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
McAuleyPenney 9acc5686ce
[docs,style]:
3 years ago
lua/tidy [docs,style]: 3 years ago
plugin [docs,style]: 3 years ago
readme.md [docs,style]: 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.

https://user-images.githubusercontent.com/59481467/138811091-05031eb1-96fc-4915-a349-e41d87c921ea.mp4

Credits:

  1. Vim Tips Wiki entry for removing unwanted spaces
  2. ib., the author of this stack overflow answer