StyLua
StyLua copied to clipboard
Prioritize nearest config for `.editorconfig`
I have a global stylua.toml at user root for my common lua files. When working with real projects with .editorconfig at root, it falls back to global config instead of the local .editorconfig which is not expected. stylua.toml and .editorconfig should be prioritized by the distance from the file being formatted.
This should already be the case for stylua.toml (https://github.com/JohnnyMorganz/StyLua/pull/916).
I guess you are interested in this specifically for .editorconfig
yes please include .editorconfig as well