Closed pocco81 closed 1 year ago
TBH, this is why I have the stylua file, though it doesn't hurt having both
I don't really use stylua
myself or any other luafmt. The editorconfig
file seems like a more universal solution (+ it has the same settings as your stylua
).
It matches the overrides, but it also has a bunch of defaults in the background, since it's an opinionated linter. It handles whitespace placement, line lengths and a bunch of other, less important things. Stuff editorconfig just can't, because it's not base neovim functionality
Builtin support for Editorconfig was recently merged into the master branch (see:
:help editorconfig
). It was also bundled with the latest release of NeoVim (0.9)Because of that, it's likely almost everyone will have this enabled already, and as such this makes it easy to contribute to this project.