Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting doesn't preserve comments or empty lines #2

Open
bayramkzk opened this issue Sep 6, 2024 · 2 comments
Open

Formatting doesn't preserve comments or empty lines #2

bayramkzk opened this issue Sep 6, 2024 · 2 comments

Comments

@bayramkzk
Copy link

bayramkzk commented Sep 6, 2024

The current formatting removes comments and empty lines. This is most likely something you're already aware of, @noperator, but I’m creating this issue on the slim chance it hasn’t come up yet.

@noperator
Copy link
Owner

Thanks—I'm aware of comment (and I suppose newline) removal, but haven't tried to solve for it yet. Can you tell me more about your use case? e.g., are you running sol on an entire file (vs. individual one-liners)?

@bayramkzk
Copy link
Author

Yes, in my use case, I am using it in Neovim with conform.nvim with format-on-save for entire bash scripts I edit but as of now, I don't think I can use it in this setup as it removes comments and empty lines. I think I can still use it for contained lines though, such as auto-generated one-line long cURL commands.

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

No branches or pull requests

2 participants