843d1ca3a1
Signed-off-by: Timothy Pidashev <mail@timmypidashev.dev>
18 lines
597 B
Lua
18 lines
597 B
Lua
-- Apex LSP: download the JAR from https://github.com/forcedotcom/salesforcedx-vscode-apex
|
|
-- then set APEX_JAR env var to its path (e.g. ~/.local/share/apex-jorje-lsp.jar).
|
|
local jar = vim.env.APEX_JAR or (vim.env.HOME .. "/.local/share/apex-jorje-lsp.jar")
|
|
|
|
return {
|
|
cmd = {
|
|
"java",
|
|
"-cp", jar,
|
|
"-Ddebug.internal.errors=true",
|
|
"-Ddebug.semantic.errors=false",
|
|
"-Ddebug.completion.statistics=false",
|
|
"-Dlwc.typegeneration.disabled=true",
|
|
"apex.jorje.lsp.ApexLanguageServerLauncher",
|
|
},
|
|
filetypes = { "apex" },
|
|
root_markers = { "sfdx-project.json", ".git" },
|
|
}
|