gorbit99 / codewindow.nvim

MIT License
431 stars 16 forks source link

feat: .editorconfig #53

Closed pocco81 closed 1 year ago

pocco81 commented 1 year ago

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.

gorbit99 commented 1 year ago

TBH, this is why I have the stylua file, though it doesn't hurt having both

pocco81 commented 1 year ago

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).

gorbit99 commented 1 year ago

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