pojokcodeid.nvim-lazy/lua/user/lsp/settings_backup/jdtls.lua

23 lines
546 B
Lua
Raw Normal View History

return {
2024-06-25 19:16:47 +07:00
cmd = {
2024-06-25 19:26:57 +07:00
"jdtls",
2024-06-25 19:16:47 +07:00
"-configuration",
2024-06-29 08:28:20 +07:00
vim.fn.stdpath("cache") .. "/jdtls/config",
2024-06-25 19:16:47 +07:00
"-data",
2024-06-29 08:28:20 +07:00
vim.fn.stdpath("cache") .. "/jdtls/workspace",
2024-06-25 19:16:47 +07:00
},
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,
}