This commit is contained in:
sadanslargehole 2024-05-29 12:35:54 -04:00
parent 4af9d8ed01
commit a7261d6293
No known key found for this signature in database

View file

@ -47,11 +47,11 @@ local function setupJDTLS()
-- } -- }
-- -- vim.list_extend(bundles, vim.split(vim.fn.glob(vim.fn.stdpath 'config' .. '/resources/vscode-java-test-main/server/*.jar', true), '\n')) -- -- vim.list_extend(bundles, vim.split(vim.fn.glob(vim.fn.stdpath 'config' .. '/resources/vscode-java-test-main/server/*.jar', true), '\n'))
local function makeandgetpath() local function makeandgetpath()
local root = require("jdtls.setup").find_root({ ".git", "mvnw", "gradlew" }) local root = require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'});
if root == nil then if root == nil then
return nil return ""
end end
local path = root .. "./data" local path = root .. "/data"
os.execute("mkdir -p " .. path) os.execute("mkdir -p " .. path)
return path return path
end end