File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11local M = {}
22local env = {
33 VSCODE_EXTENSIONS = vim .env [" VSCODE_EXTENSIONS" ],
4- LOMBOK_ENABLE = vim .env [" LOMBOK_ENABLE " ] or " Y " ,
4+ LOMBOK_JAR = vim .env [" LOMBOK_JAR " ] ,
55}
66M .get_vscode_extensions = function ()
77 return env .VSCODE_EXTENSIONS or " ~/.vscode/extensions"
2121
2222local mason , _ = pcall (require , " mason-registry" )
2323M .get_lombok_jar = function ()
24- local lombok_jar = nil
25- if env . LOMBOK_ENABLE == " Y " then
24+ local lombok_jar = env . LOMBOK_JAR
25+ if lombok_jar == nil then
2626 lombok_jar = M .find_one (" /redhat.java-*/lombok/lombok-*.jar" )
2727 if lombok_jar == nil and mason and require (" mason-registry" ).has_package (" jdtls" ) then
2828 lombok_jar = require (" mason-registry" ).get_package (" jdtls" ):get_install_path () .. " /lombok.jar"
You can’t perform that action at this time.
0 commit comments