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

Use google-java-format #442

Closed
sfc-gh-mamsterdam opened this issue Mar 14, 2023 · 2 comments
Closed

Use google-java-format #442

sfc-gh-mamsterdam opened this issue Mar 14, 2023 · 2 comments

Comments

@sfc-gh-mamsterdam
Copy link

Problem Statement

Hi,
I understand that you can use java-google-style.xml with nvim-jdtls, but I want to be able to use the google-java-format instead. Google-java-format is more powerful/flexible and formats differently than java-google-style.

I believe this integration, if it's not already implemented, is relatively straightforward, and I believe ALE and coc support it.

Thanks!

Ideas or possible solutions

Implement it or maybe it already exists!

@sfc-gh-mamsterdam
Copy link
Author

Link explaining the differences here: google/google-java-format#695

@mfussenegger
Copy link
Owner

It's not supported by eclipse.jdt.ls (see redhat-developer/vscode-java#663 & redhat-developer/vscode-java#419) but given that it's an executable you should be able to use it with formatprg, see :help formatprg.

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