aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--installer/install-apex-jorje-lsp.cmd9
-rwxr-xr-xinstaller/install-apex-jorje-lsp.sh11
-rw-r--r--settings.json33
-rw-r--r--settings/apex-jorje-lsp.vim13
4 files changed, 66 insertions, 0 deletions
diff --git a/installer/install-apex-jorje-lsp.cmd b/installer/install-apex-jorje-lsp.cmd
new file mode 100644
index 0000000..977f56c
--- /dev/null
+++ b/installer/install-apex-jorje-lsp.cmd
@@ -0,0 +1,9 @@
+@echo off
+
+curl -o apex-jorje-lsp.jar "https://github.com/forcedotcom/salesforcedx-vscode/blob/develop/packages/salesforcedx-vscode-apex/out/apex-jorje-lsp.jar?raw=true"
+
+echo @echo off ^
+
+java -jar %%~dp0\apex-jorje-lsp.jar %%* ^
+
+> apex-jorje-lsp.cmd
diff --git a/installer/install-apex-jorje-lsp.sh b/installer/install-apex-jorje-lsp.sh
new file mode 100755
index 0000000..b6f20f9
--- /dev/null
+++ b/installer/install-apex-jorje-lsp.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+curl -o apex-jorje-lsp.jar "https://github.com/forcedotcom/salesforcedx-vscode/blob/develop/packages/salesforcedx-vscode-apex/out/apex-jorje-lsp.jar?raw=true"
+
+cat <<EOF >apex-jorje-lsp
+
+DIR=\$(cd \$(dirname \$0); pwd)
+java -jar \$DIR/apex-jorje-lsp.jar %%* ^
+EOF
+
+chmod +x apex-jorje-lsp
diff --git a/settings.json b/settings.json
index 0b417c7..8180e12 100644
--- a/settings.json
+++ b/settings.json
@@ -9,6 +9,24 @@
]
}
],
+ "apex": [
+ {
+ "command": "apex-jorje-lsp",
+ "requires": [
+ "java"
+ ],
+ "vim-plugin": {
+ "extensions": [
+ "apxc",
+ "apxt",
+ "cls",
+ "trigger",
+ "tgr"
+ ],
+ "name": "ejholmes/vim-forcedotcom"
+ }
+ }
+ ],
"c": [
{
"command": "clangd",
@@ -490,6 +508,21 @@
]
}
],
+ "visualforce": [
+ {
+ "command": "apex-jorje-lsp",
+ "requires": [
+ "java"
+ ],
+ "vim-plugin": {
+ "extensions": [
+ "vfp",
+ "vfc"
+ ],
+ "name": "ejholmes/vim-forcedotcom"
+ }
+ }
+ ],
"vue": [
{
"command": "vls",
diff --git a/settings/apex-jorje-lsp.vim b/settings/apex-jorje-lsp.vim
new file mode 100644
index 0000000..29f679b
--- /dev/null
+++ b/settings/apex-jorje-lsp.vim
@@ -0,0 +1,13 @@
+augroup vimlsp_settings_apex_jorje_lsp
+ au!
+ LspRegisterServer {
+ \ 'name': 'apex-jorje-lsp',
+ \ 'cmd': {server_info->lsp_settings#get('apex-jorje-lsp', 'cmd', [lsp_settings#exec_path('apex-jorje-lsp')])},
+ \ 'root_uri':{server_info->lsp_settings#get('apex-jorje-lsp', 'root_uri', lsp_settings#root_uri(g:lsp_settings_root_markers))},
+ \ 'initialization_options': lsp_settings#get('apex-jorje-lsp', 'initialization_options', v:null),
+ \ 'whitelist': lsp_settings#get('apex-jorje-lsp', 'whitelist', ['apex', 'visualforce']),
+ \ 'blacklist': lsp_settings#get('apex-jorje-lsp', 'blacklist', []),
+ \ 'config': lsp_settings#get('apex-jorje-lsp', 'config', {}),
+ \ 'workspace_config': lsp_settings#get('apex-jorje-lsp', 'workspace_config', {}),
+ \ }
+augroup END