mirror of
https://github.com/tiyn/tidy.nvim.git
synced 2025-06-15 03:27:47 +02:00
tidy.nvim 🧹
A function and autocommand pair that removes all
- trailing whitespace
- empty lines at the end of the buffer
on every BufWritePre
.
install
- Packer
use "McAuleyPenney/tidy.nvim"
or with lazy-loading
use{ "McAuleyPenney/tidy.nvim", event = "BufWritePre" }
Credits:
-
ib., the author of this stack overflow answer
-
This line in gpanders/editorconfig.nvim for exposing me to the
keepjumps
andkeeppatterns
modifiers
Description
A small Neovim plugin to remove trailing whitespace and empty lines at end of file on every save
Languages
Lua
100%