lombok
This commit is contained in:
		
							
								
								
									
										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
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
		Reference in New Issue
	
	Block a user