dotfiles/vim/.vim/ycm_extra_conf.py

21 lines
605 B
Python
Raw Normal View History

2024-04-16 12:29:05 +02:00
import os
PATH_TO_LOMBOK = os.path.expanduser("/usr/lib/lombok-common/lombok.jar")
2024-04-20 10:52:57 +02:00
# jdtls_args = ['-noverify',
# '-Xmx1G',
# '-XX:+UseG1GC',
# '-XX:+UseStringDeduplication']
2024-04-16 12:29:05 +02:00
def Settings( **kwargs ):
if not os.path.exists(PATH_TO_LOMBOK):
raise RuntimeError("Didn't find lombok jar")
if kwargs['language'] == 'java':
return {
'server': {
'jvm_args': [
'-javaagent:' + PATH_TO_LOMBOK,
'-Xbootclasspath/a:' + PATH_TO_LOMBOK
2024-04-20 10:52:57 +02:00
]
2024-04-16 12:29:05 +02:00
}
}