mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
22 lines
546 B
Lua
22 lines
546 B
Lua
return {
|
|
cmd = {
|
|
"jdtls",
|
|
"-configuration",
|
|
vim.fn.stdpath("cache") .. "/jdtls/config",
|
|
"-data",
|
|
vim.fn.stdpath("cache") .. "/jdtls/workspace",
|
|
},
|
|
filetypes = { "java" },
|
|
root_dir = require("lspconfig.util").root_pattern(
|
|
-- Single-module projects
|
|
{
|
|
"build.xml", -- Ant
|
|
"pom.xml", -- Maven
|
|
"settings.gradle", -- Gradle
|
|
"settings.gradle.kts", -- Gradle
|
|
},
|
|
-- Multi-module projects
|
|
{ "build.gradle", "build.gradle.kts" }
|
|
) or vim.fn.getcwd(),
|
|
singe_file_support = true,
|
|
}
|