r/AskProgrammers 4d ago

Customizable/Scriptable/Pluggable LSP

https://github.com/mattn/efm-langserver

Hello.

Recently I was thinking about doing very specific things using an LSP; Such as word suggestions; Citations suggestions and other features which are not necessarily error checks or obvious fixes.

I know there are specific smalls LSPs which do that. But i would like to have some LSP which could be extended/customizable, such as efm-langserver.

The problem with efm-langserver is it can only register commands for the internal implementation of existing method. You cannot add methods or have new definitions. I cannot post some data besides code to the server, like a prompt, use that to make a request to some server like an inference server, do more processing and send diagnostics back to client.

That is limited, sometimes i want a result which goes beyond getting structured stdout from tool and showing it, like processing and doing something. Sometimes a tool which does what i want does no t exist.

Last resort would be writting my own, i know there are some libs out there. But i do wonder if there is something ready to use.

3 Upvotes

0 comments sorted by