-
Notifications
You must be signed in to change notification settings - Fork 4
demo for sublime text
bitbegin edited this page Apr 1, 2019
·
19 revisions
-
lsp client: https://packagecontrol.io/packages/LSP -
red-syntax: https://packagecontrol.io/packages/Red
-
git clone https://github.com/bitbegin/redlangserver.git -
we will use
server.red(aslsp server) to configurelsp client
-
Preferences->Package Settings->LSP->Settings
{
"clients":
{
"red":
{
"command":
[
"C:/ProgramData/Red/console-2019-xxx.exe",
"D:/path/to/server.red",
"debug-off"
],
"scopes": ["source.red"],
"enabled": true,
"languageId": "red"
},
},
"complete_all_chars": true,
"only_show_lsp_completions": true,
"show_diagnostics_count_in_view_status": true,
"show_diagnostics_phantoms": true
}
Notes: C:/ProgramData/Red/console-2019-xxx.exe can be produced by red-latest.exe --cli. You also should use lastest(daily) Red version
Maybe you still need:
- Run
LSP: Enable Language Serverfrom the Command Palette to enable your server. - restart sublime-text
- don't support
goto definition, but you can use this way to goto definition