Updated LSP inferastructure

This commit is contained in:
itdominator 2024-04-04 23:29:06 -05:00
parent b76b7ab780
commit 4fe2c7ed8f
2 changed files with 24 additions and 12 deletions

View File

@ -12,6 +12,12 @@ This is currently very much a WIP effort with two branches to take note of. The
* release/newton-with-gtksource
* release/newton-with-webkit2
# LSP
Add lsp-ws-proxy somewhere in $PATH and make executable. Download from:
* https://github.com/qualified/lsp-ws-proxy
# Images
* GtkSource.View
![1 Newton default view. ](images/pic1.png)

View File

@ -1,14 +1,16 @@
{
"sh": {
"info": "",
"alt-command": "",
"command": "",
"socket": "ws://127.0.0.1:3030/shell",
"socket": "ws://127.0.0.1:3030/?name=shell",
"initialization_options": {}
},
"python": {
"info": "https://github.com/python-lsp/python-lsp-server",
"command": "pylsp --ws --port 3030",
"socket": "ws://127.0.0.1:3030/python",
"alt-command": "pylsp --ws --port 3030",
"command": "lsp-ws-proxy --listen 3030 -- pylsp",
"socket": "ws://127.0.0.1:3030/?name=pylsp",
"initialization_options": {
"pylsp.plugins.rope_autoimport.enabled": true,
"pylsp.plugins.rope_completion.enabled": true,
@ -21,8 +23,9 @@
},
"python3": {
"info": "https://pypi.org/project/jedi-language-server/",
"command": "jedi-language-server",
"socket": "ws://127.0.0.1:3030/python",
"alt-command": "jedi-language-server",
"command": "lsp-ws-proxy --listen 3030 -- jedi-language-server",
"socket": "ws://127.0.0.1:3030/?name=jedi-language-server",
"initialization_options": {
"jediSettings": {
"autoImportModules": [],
@ -47,20 +50,23 @@
},
"c": {
"info": "https://clangd.llvm.org/",
"command": "/usr/bin/clangd",
"socket": "ws://127.0.0.1:3030/c",
"alt-command": "clangd",
"command": "lsp-ws-proxy --listen 3030 -- clangd",
"socket": "ws://127.0.0.1:3030/?name=clangd",
"initialization_options": {}
},
"cpp": {
"info": "https://clangd.llvm.org/",
"command": "/usr/bin/clangd",
"socket": "ws://127.0.0.1:3030/cpp",
"alt-command": "clangd",
"command": "lsp-ws-proxy --listen 3030 -- clangd",
"socket": "ws://127.0.0.1:3030/?name=clangd",
"initialization_options": {}
},
"java": {
"info": "https://download.eclipse.org/jdtls/",
"command": "java-language-server",
"socket": "ws://127.0.0.1:3030/java",
"alt-command": "java-language-server",
"command": "lsp-ws-proxy --listen 3030 -- java-language-server",
"socket": "ws://127.0.0.1:3030/?name=java-language-server",
"initialization_options": {}
}
}