Skip to content

Conversation

@phanen
Copy link
Contributor

@phanen phanen commented Apr 11, 2025

Reproduction:

echo '/' >.styluaignore
RUST_BACKTRACE=full cargo run -- --respect-ignores --stdin-filepath /tmp/random_path.lua -

I found this when use https://github.com/stevearc/conform.nvim/blob/70019124aa4f2e6838be9fbd2007f6d13b27a96d/lua/conform/formatters/stylua.lua#L9-L15 to format a file not in current project directory.

Copy link
Owner

@JohnnyMorganz JohnnyMorganz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@JohnnyMorganz JohnnyMorganz merged commit 923e912 into JohnnyMorganz:main Apr 21, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants