mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-26 02:38:45 +02:00
Updated 6. Configurations (markdown)
parent
442d2ced81
commit
b05c462058
1 changed files with 30 additions and 0 deletions
|
@ -787,4 +787,34 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
# Config LSP JDTLS
|
||||||
|
```lua
|
||||||
|
return {
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
config = function()
|
||||||
|
require("lspconfig").jdtls.setup({
|
||||||
|
cmd = {
|
||||||
|
"jdtls",
|
||||||
|
"-configuration",
|
||||||
|
vim.fn.expand("$HOME") .. "/.cache/jdtls/config",
|
||||||
|
"-data",
|
||||||
|
vim.fn.expand("$HOME") .. "/.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,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
```
|
```
|
Loading…
Add table
Add a link
Reference in a new issue