From a7261d62938bf6f2fdfbee8dd716610d498b6bac Mon Sep 17 00:00:00 2001 From: sadanslargehole <117494111+sadan4@users.noreply.github.com> Date: Wed, 29 May 2024 12:35:54 -0400 Subject: [PATCH] fix --- lua/setuplsp.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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