mirror of https://github.com/tiyn/tidy.nvim
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.
13 lines
484 B
13 lines
484 B
## tidy.nvim 🧹
|
|
|
|
A function and autocommand pair that removes all trailing whitespace \
|
|
and all 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. https://vim.fandom.com/wiki/Remove_unwanted_spaces#Automatically_removing_all_trailing_whitespace
|
|
2. ib. from https://stackoverflow.com/questions/7495932/how-can-i-trim-blank-lines-at-the-end-of-file-in-vim
|