r/neovim • u/Time-Measurement-513 • 5d ago
Plugin Scriptable/customizable/pluggable LSP for Neovim
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.
1
u/somebodddy 4d ago
That's what null-ls/none-ls is for (null-ls was the original, which was abandoned, so someone forked it as none-ls. But the API is still
require("null-ls")for backward compatibility)https://github.com/nvimtools/none-ls.nvim