lombok
This commit is contained in:
parent
19a9c145b3
commit
e206905123
20
vim/.vim/ycm_extra_conf.py
Normal file
20
vim/.vim/ycm_extra_conf.py
Normal 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
|
||||||
|
}
|
||||||
|
}
|
@ -26,7 +26,7 @@ let g:vimtex_view_method = 'zathura'
|
|||||||
nnoremap gd :YcmCompleter GoToDefinition<CR>
|
nnoremap gd :YcmCompleter GoToDefinition<CR>
|
||||||
nnoremap gr :YcmCompleter GoToReferences<CR>
|
nnoremap gr :YcmCompleter GoToReferences<CR>
|
||||||
nnoremap K :YcmCompleter GetDoc<CR>
|
nnoremap K :YcmCompleter GetDoc<CR>
|
||||||
nnoremap <F9> :YcmCompleter FixIt<CR>
|
nnoremap <CR> :YcmCompleter FixIt<CR>
|
||||||
noremap gN :Lex<CR>
|
noremap gN :Lex<CR>
|
||||||
|
|
||||||
nnoremap <F12> :Make<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_always_populate_location_list = 1
|
||||||
let g:ycm_goto_buffer_command = "'split-or-existing-window'"
|
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 = [
|
let g:ycm_language_server = [
|
||||||
\ {
|
\ {
|
||||||
\ 'name': 'tex',
|
\ 'name': 'tex',
|
||||||
|
Loading…
Reference in New Issue
Block a user