docs(java): add formatter docs
This commit is contained in:
parent
dd4c0b385f
commit
24bfd3f5b4
1 changed files with 12 additions and 0 deletions
|
@ -98,6 +98,18 @@ JAVA_HOME=~/.jabba/jdk/adopt@1.11.0-3
|
||||||
And then run ~$ direnv allow .~ in the project directory. The [[doom-module::tools direnv]]
|
And then run ~$ direnv allow .~ in the project directory. The [[doom-module::tools direnv]]
|
||||||
module will automatically source this environment before activating LSP servers.
|
module will automatically source this environment before activating LSP servers.
|
||||||
|
|
||||||
|
** Formatter
|
||||||
|
|
||||||
|
[[doom-module::editor format]] uses [[https://github.com/google/google-java-format][google-java-format]] to handle formatting.
|
||||||
|
|
||||||
|
To install, grab the latest =all-deps.jar= release from the above, put it
|
||||||
|
somewhere and create a script similar to the below:
|
||||||
|
|
||||||
|
=/usr/local/bin/google-java-format=
|
||||||
|
#+begin_src shell
|
||||||
|
java -jar /path/to/google-java-format-all-deps.jar
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* TODO Usage
|
* TODO Usage
|
||||||
#+begin_quote
|
#+begin_quote
|
||||||
🔨 /This module's usage documentation is incomplete./ [[doom-contrib-module:][Complete it?]]
|
🔨 /This module's usage documentation is incomplete./ [[doom-contrib-module:][Complete it?]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue