Skip to content

Prioritize nearest config for .editorconfig #1005

@sharpchen

Description

@sharpchen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions