Page 1 of 2
plugin LSP Client
Posted: 14.04.2021 20:09
by uvviewsoft
Plugin requires CudaText 1.132 or newer.
Info about plugin:
1) Wiki page -
https://wiki.freepascal.org/CudaText_plugins#LSP_Client
2) Its readme file -
https://github.com/halfbrained/cuda_lsp ... ain/readme
You need to install LSP servers by yourself and see server docs too. Readme shows how to use it with Python LSP server.
Posted: 27.05.2021 21:01
by uvviewsoft
Plugin updated today, it now supports "format file on save" (only if server supports this).
Posted: 31.05.2021 17:06
by uvviewsoft
Tested 2 more servers:
C++ server based on clangd: works OK.
CSS server: added wiki page -
https://wiki.freepascal.org/CudaText_pl ... CSS.2FLESS
Posted: 20.07.2021 07:46
by king.midas
Hello!
Please help me figure out the connection of servers - it is not clear how to connect an LSP server and whether any will work.
Will any of this work well in CudaText with the LSP plugin?
AutoHotKey:
https://github.com/mark-wiemer/vscode-a ... -plus-plus
https://github.com/thqby/vscode-autohotkey2-lsp
OneC (1c)
https://github.com/1c-syntax/vsc-language-1c-bsl
Posted: 20.07.2021 11:05
by uvviewsoft
I will ping @Shovel/@halfbrained but it's additional work, not sure he wants to install all this.
I welcome donation for this, to me, I will resend it to @Shovel
Posted: 21.07.2021 14:52
by uvviewsoft
@king.midas
AutoHotkey information is now in the wiki.
https://wiki.lazarus.freepascal.org/Cud ... AutoHotkey
About 1C: maybe @halfbrained will see it too.
Posted: 21.07.2021 16:05
by Shovel
"vscode-autohotkey-plus-plus" and 1c server won't work. Former is not an LSP server as far as I can tell, latter I just haven't managed to get working - it appears to not be designed to be used outside of vscode
Posted: 22.07.2021 14:38
by king.midas
Thank you very much!
Questions:
1. I am newbie to node.js. While i am not run "npm install typescript"
inside folder "server" compilation won't work! May be error in wiki ?
2. Have trouble - filenames prepend with "/", or "D:\D:\". What to do may help ?
https://i.imgur.com/6uE5Jy2.png
Posted: 23.07.2021 11:06
by uvviewsoft
About your Q-1: "npm install typescript" is not server compilation. it's installing of TypeScript. the server compilation is the next command with "npx".
What error that "npx" command gives to u?
Also did u try to install TypeScript globally?
https://docs.npmjs.com/downloading-and- ... s-globally
Posted: 23.07.2021 12:39
by Shovel
Filenames issue should be fixed.
Until official download is updated, plugin can be fetched here
https://github.com/halfbrained/cuda_lsp