mcauley-penney / tidy.nvim

A small Neovim plugin to remove trailing whitespace and empty lines at end of file on every save
107 stars 15 forks source link

Provide option to remove trailing whitespace only on modified lines #10

Open mcauley-penney opened 1 year ago

mcauley-penney commented 1 year ago

For reference, see axelf4/vim-strip-trailing-whitespace

The motivation for this feature is to prevent modifying many lines on save, polluting a commit with changes that are not relevant to a feature or fix. To effectively use this tool as it is now on a large file with many errant white spaces, one almost needs to reformat the file, commit those changes, then begin working on their task.

mcauley-penney commented 2 months ago

Also see lessspace.vim