McAuleyPenney 4a858add91 [docs,feat]: protect search history and jump list
- add `keepjumps` and `keeppatterns` modifiers to regex commands
    - update readme
2021-10-28 09:11:35 -07:00
2021-10-26 01:25:20 -07:00

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
  3. This line in gpanders/editorconfig.nvim for exposing me to the keepjumps and keeppatterns modifiers
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%