mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-09-01 08:15:20 +02:00
fix java on attach
This commit is contained in:
parent
edad8a4924
commit
2279cb3e65
1 changed files with 1 additions and 6 deletions
|
@ -23,13 +23,8 @@ local util = require "lspconfig/util"
|
||||||
-- CONFIG_PATH.."/.debuggers/java-debug/com.microsoft.java.debug.plugin/target/com.microsoft.java.debug.plugin-*.jar")
|
-- CONFIG_PATH.."/.debuggers/java-debug/com.microsoft.java.debug.plugin/target/com.microsoft.java.debug.plugin-*.jar")
|
||||||
-- };
|
-- };
|
||||||
|
|
||||||
local on_attach = function(client, bufr)
|
|
||||||
-- require('jdtls').setup_dap()
|
|
||||||
require("lsp").common_on_attach(client, bufr)
|
|
||||||
end
|
|
||||||
|
|
||||||
require("lspconfig").jdtls.setup {
|
require("lspconfig").jdtls.setup {
|
||||||
on_attach = on_attach,
|
on_attach = require("lsp").common_on_attach,
|
||||||
cmd = { DATA_PATH .. "/lspinstall/java/jdtls.sh" },
|
cmd = { DATA_PATH .. "/lspinstall/java/jdtls.sh" },
|
||||||
filetypes = { "java" },
|
filetypes = { "java" },
|
||||||
root_dir = util.root_pattern { ".git", "build.gradle", "pom.xml" },
|
root_dir = util.root_pattern { ".git", "build.gradle", "pom.xml" },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue