McAuleyPenney 2e8256877d [init]:
2021-10-25 21:20:04 -07:00
2021-10-25 21:20:04 -07:00
2021-10-25 21:20:04 -07:00
2021-10-25 21:20:04 -07:00

Tidy.nvim

I like to keep my files orderly. Tidy.nvim is a function and autocommand pair that helps me do this by removing all empty lines from the end of the file and trailing whitespace from all lines on every save.

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
Description
A small Neovim plugin to remove trailing whitespace and empty lines at end of file on every save
Readme 66 KiB
Languages
Lua 100%