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

feat: don't run if editorconfig is detected #12

Closed saccarosium closed 1 year ago

saccarosium commented 1 year ago

Since in neovim 0.9.0 Editorconfig support is built-in. I think is a good thing to disable this plugin if a .editorconfig file is detected.

If there isn't any .editorconfig file neovim puts a buffer variable called vim.b.editorconfig and assign to it an empty table.

mcauley-penney commented 1 year ago

Thanks for the PR! I'm very open to merging this. I'll test/play around with it later today and will respond again when I'm done