NMAC427 / guess-indent.nvim

Automatic indentation style detection for Neovim
MIT License
413 stars 8 forks source link

editorconfig support #11

Closed mehalter closed 1 year ago

mehalter commented 1 year ago

Neovim v0.9 is coming with editorconfig support. In cases where a .editorconfig file is detected, this plugin shouldn't override the settings that it sets. This does a basic check to see if the .editorconfig sets any indentation settings and then chooses to ignore overwriting these.

This also adds an option to the configuration override_editorconfig to control this, it defaults to false which does not override editorconfig settings.

mehalter commented 1 year ago

Thanks for the review! I agree with the requested changes and made the necessary modifications. Also here is the relevant PR on Neovim that added this feature: https://github.com/neovim/neovim/pull/21633

Just for future reference or if you are interested.