StyLua icon indicating copy to clipboard operation
StyLua copied to clipboard

Move config file resolver to library

Open flip1995 opened this issue 5 months ago • 0 comments

When using stylua as a library, the only formatting interface it provides are the format_code and format_ast functions, which both already expect a config file. To replicate the config file discovery that the stylua CLI implements, one would have to copy this.

My motivation: For one of my projects I'm creating bindings for other languages to the stylua_lib. There it would be really useful, if I could use the config file discovery.

flip1995 avatar Aug 12 '25 13:08 flip1995