vim yp and no more args for lombok

This commit is contained in:
Debucquoy Anthony 2024-04-20 10:52:57 +02:00
parent d20a50e347
commit 8d3e39736b
2 changed files with 7 additions and 5 deletions

View File

@ -1,10 +1,10 @@
import os
PATH_TO_LOMBOK = os.path.expanduser("/usr/lib/lombok-common/lombok.jar")
jdtls_args = ['-noverify',
'-Xmx1G',
'-XX:+UseG1GC',
'-XX:+UseStringDeduplication']
# jdtls_args = ['-noverify',
# '-Xmx1G',
# '-XX:+UseG1GC',
# '-XX:+UseStringDeduplication']
def Settings( **kwargs ):
if not os.path.exists(PATH_TO_LOMBOK):
@ -15,6 +15,6 @@ def Settings( **kwargs ):
'jvm_args': [
'-javaagent:' + PATH_TO_LOMBOK,
'-Xbootclasspath/a:' + PATH_TO_LOMBOK
] + jdtls_args
]
}
}

View File

@ -29,6 +29,8 @@ nnoremap K :YcmCompleter GetDoc<CR>
nnoremap <CR> :YcmCompleter FixIt<CR>
noremap gN :Lex<CR>
nnoremap yp :let @+=expand('%') .. '#' .. line('.')<CR>
nnoremap <F12> :Make<CR>
nnoremap <leader><F12> :Make run<CR>