diff --git a/lua/setuplsp.lua b/lua/setuplsp.lua index 84a5483..6dc3587 100644 --- a/lua/setuplsp.lua +++ b/lua/setuplsp.lua @@ -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')) local function makeandgetpath() - local root = require("jdtls.setup").find_root({ ".git", "mvnw", "gradlew" }) - if root == nil then - return nil - end - local path = root .. "./data" + local root = require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'}); + if root == nil then + return "" + end + local path = root .. "/data" os.execute("mkdir -p " .. path) return path end