Jdtls error fixed
This commit is contained in:
parent
36f68238e8
commit
949a17f6e2
3 changed files with 18 additions and 22 deletions
|
|
@ -8,20 +8,15 @@ lspconfig.jdtls.setup({
|
|||
"-Dosgi.bundles.defaultStartLevel=4",
|
||||
"-Declipse.product=org.eclipse.jdt.ls.core.product",
|
||||
"-Dlog.protocol=true",
|
||||
"-Dlog.level=ALL",
|
||||
"-Xmx1G",
|
||||
"-Dlog.level=INFO",
|
||||
"-Xmx2G",
|
||||
"-Xms100m",
|
||||
"--add-modules=ALL-SYSTEM",
|
||||
"--add-opens",
|
||||
"java.base/java.util=ALL-UNNAMED",
|
||||
"--add-opens",
|
||||
"java.base/java.lang=ALL-UNNAMED",
|
||||
"-jar",
|
||||
"/home/prabhat/.local/share/nvim/mason/packages/jdtls/plugins/org.eclipse.equinox.launcher_*.jar",
|
||||
"-configuration",
|
||||
"/home/prabhat/.local/share/nvim/mason/packages/jdtls/config_linux",
|
||||
"-data",
|
||||
"/home/prabhat/.local/share/nvim/jdtls-workspace",
|
||||
"--add-opens", "java.base/java.util=ALL-UNNAMED",
|
||||
"--add-opens", "java.base/java.lang=ALL-UNNAMED",
|
||||
"-jar", "/home/prabhat/.local/share/nvim/mason/packages/jdtls/plugins/org.eclipse.equinox.launcher_1.6.900.v20240613-2009.jar",
|
||||
"-configuration", "/home/prabhat/.local/share/nvim/mason/packages/jdtls/config_linux",
|
||||
"-data", vim.fn.stdpath("data") .. "/jdtls-workspace/" .. vim.fn.fnamemodify(vim.loop.cwd(), ":p:h:t"),
|
||||
},
|
||||
capabilities = capabilities,
|
||||
root_dir = function()
|
||||
|
|
|
|||
|
|
@ -65,3 +65,4 @@ opt.scrolloff = 8
|
|||
|
||||
-- minimal number of screen columns either side of cursor if wrap is `false`
|
||||
opt.sidescrolloff = 8
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue