This commit is contained in:
Debucquoy Anthony 2024-04-16 12:29:05 +02:00
parent 19a9c145b3
commit e206905123
Signed by: tonitch
GPG Key ID: A78D6421F083D42E
2 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,20 @@
import os
PATH_TO_LOMBOK = os.path.expanduser("/usr/lib/lombok-common/lombok.jar")
jdtls_args = ['-noverify',
'-Xmx1G',
'-XX:+UseG1GC',
'-XX:+UseStringDeduplication']
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
] + jdtls_args
}
}

View File

@ -26,7 +26,7 @@ let g:vimtex_view_method = 'zathura'
nnoremap gd :YcmCompleter GoToDefinition<CR>
nnoremap gr :YcmCompleter GoToReferences<CR>
nnoremap K :YcmCompleter GetDoc<CR>
nnoremap <F9> :YcmCompleter FixIt<CR>
nnoremap <CR> :YcmCompleter FixIt<CR>
noremap gN :Lex<CR>
nnoremap <F12> :Make<CR>
@ -62,7 +62,7 @@ let g:cpp_attributes_highlight = 1
let g:ycm_always_populate_location_list = 1
let g:ycm_goto_buffer_command = "'split-or-existing-window'"
let g:ycm_java_binary_path = "/usr/lib/jvm/java-17-openjdk/bin/java"
let g:ycm_global_ycm_extra_conf = '~/.vim/ycm_extra_conf.py'
let g:ycm_language_server = [
\ {
\ 'name': 'tex',