Skip to content

Commit

Permalink
feat: auto download latest lombok.jar dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Dec 13, 2023
1 parent 63d6c1e commit 274c8d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions ansible/playbooks/nvim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@
state: link
force: true

- name: Create a directory for lombok.jar
ansible.builtin.file:
path: '/usr/local/share/lombok'
state: directory
mode: 0777
recurse: true

- name: Download the latest lombok.jar (https://projectlombok.org/)
ansible.builtin.get_url:
url: 'https://projectlombok.org/downloads/lombok.jar'
dest: '/usr/local/share/lombok/lombok.jar'
mode: 0777

- name: Install pynvim (support `pyx` command)
ansible.builtin.pip:
name: pynvim
2 changes: 1 addition & 1 deletion nvim/coc-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"java.format.enabled": true,
"java.import.maven.enabled": true,
"java.maven.downloadSources": true,
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -javaagent:/usr/local/share/lombok/lombok-1.18.24.jar"
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -javaagent:/usr/local/share/lombok/lombok.jar"
}

0 comments on commit 274c8d6

Please sign in to comment.