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

format: Use current settings for formatting #59

Merged
merged 1 commit into from
Apr 6, 2024

Conversation

mkhl
Copy link
Contributor

@mkhl mkhl commented Apr 6, 2024

Instead of hard-coding default values,
use the current settings to determine the options
to pass the language server
for the textDocument/formatting call.

Also pass values for trimTrailingWhitespace and insertFinalNewline
because micro has settings for those too.

Instead of hard-coding default values,
use the current settings to determine the options
to pass the language server
for the textDocument/formatting call.

Also pass values for `trimTrailingWhitespace` and `insertFinalNewline`
because micro has settings for those too.
@AndCake
Copy link
Owner

AndCake commented Apr 6, 2024

Hey @mkhl! This looks great and very straightforward. Thank you for this contribution!

@AndCake AndCake merged commit 5daed6c into AndCake:master Apr 6, 2024
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