Closed sangramsingha closed 1 month ago
Any way its working after updating my config
local spring_boot = {
"JavaHello/spring-boot.nvim", --"eslam-allam/spring-boot.nvim"
version = "*",
ft = {"java"},
dependencies = {
"mfussenegger/nvim-jdtls",
},
opts = function()
-- mason for sonarlint-language path
local mason_registery_status, mason_registery = pcall(require, "mason-registry")
if not mason_registery_status then
vim.notify("Mason registery not found", vim.log.levels.ERROR, {title = "Spring boot"})
return
end
-- java enviroments
local util_status, util = pcall(require, "sangram.util")
if not util_status then
vim.notify("java config not found", vim.log.levels.ERROR, {title = "Spring boot"})
return
end
local java_config = util.getJavaList()
local opts = {}
opts.ls_path = mason_registery.get_package("spring-boot-tools"):get_install_path() .. "/extension/language-server"
-- opts.ls_path = "/home/sangram/.vscode/extensions/vmware.vscode-spring-boot-1.55.1"
-- vim.notify("spring boot ls path : " .. opts.ls_path, vim.log.levels.INFO, {title = "Spring boot"})
opts.java_cmd = java_config[1].path .. "/bin/java"
opts.exploded_ls_jar_data = true
opts.jdtls_name = "jdtls"
opts.log_file = "/home/sangram/.local/state/nvim/spring-boot-ls.log"
return opts
end
}
return spring_boot
lsp.log
spring-boot config
And Error notification pop up with message
Client not found: spring-boot
Could not figure out anything wrong in config.