mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-27 11:18:53 +02:00
enc: migrate java from nvim-jdtls to lsp jdtls
This commit is contained in:
parent
4bd718cab7
commit
2d1579c969
6 changed files with 200 additions and 191 deletions
15
lua/user/lsp/settings/jdtls.lua
Normal file
15
lua/user/lsp/settings/jdtls.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue