You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.1 KiB

tidy.nvim 🧹

A function and autocommand pair that removes all

- trailing whitespace
- empty lines at the end of the buffer

on every BufWritePre.

tidy

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