mirror of
https://github.com/tiyn/tidy.nvim.git
synced 2026-09-27 21:55:38 +02:00
1b2a6b336d9bc9a61da8c5faff4c24ed0e820997
tidy.nvim 🧹
A function and autocommand pair that removes all
- trailing whitespace
- empty lines at the end of the buffer
on every BufWritePre.
Note: See the cfg branch for increased functionality and configuration.
Installation
- Packer
use "McAuleyPenney/tidy.nvim"
or with lazy-loading
use{ "McAuleyPenney/tidy.nvim", event = "BufWritePre" }
Todo
- preserve undotree
Credits
-
ib., the author of this stack overflow answer
-
This line in gpanders/editorconfig.nvim for exposing me to the
keepjumpsandkeeppatternsmodifiers
Description
A small Neovim plugin to remove trailing whitespace and empty lines at end of file on every save
Readme
198 KiB
Languages
Lua
100%
