plugin LSP Client

Plugins for SynWrite and CudaText...
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

plugin LSP Client

Post 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.
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

Plugin updated today, it now supports "format file on save" (only if server supports this).
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post 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
king.midas
Posts: 40
Joined: 26.02.2019 13:47

Post 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
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post 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
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post 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.
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post 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
king.midas
Posts: 40
Joined: 26.02.2019 13:47

Post by king.midas »

uvviewsoft wrote:@king.midas
AutoHotkey information is now in the wiki.
https://wiki.lazarus.freepascal.org/Cud ... AutoHotkey
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
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post 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
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post by Shovel »

Filenames issue should be fixed.

Until official download is updated, plugin can be fetched here https://github.com/halfbrained/cuda_lsp
Post Reply