enc: move lsp config to auto-lsp.nvim

This commit is contained in:
Pojok Code 2024-10-20 17:21:07 +07:00
parent 5f766a5717
commit c09e320633
22 changed files with 253 additions and 293 deletions

View file

@ -0,0 +1,22 @@
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,
}