Does Notepad++ support Language Server Protocol (LSP)
-
As in title: Does Notepad++ support Language Server Protocol (LSP)??
The reason I ask is that am learning a few new languages such as Rust, Node.js, React to name a few.
I was wondering: for Rust I used the plugin for Rust; would it be feasible to link it to the Language Server for Rust?? https://github.com/rust-lang/rls
My initial thought was that if I selected the plugin for Rust, an option (or prompt) could be available to link to to its Language Server.
Similarly, I believe that there are Language Servers for Node.js, React and many more.
Questions and comments would be appreciated. -
Natively, no. But it could be implemented in a plugin.
For example, @Ekopalypse is working on NppLspClient, which is still in development/alpha state, but I’ve started to use with a Perl LSP server, and though it’s not feature-complete yet, it is showing promise.
-
@PeterJones
Thanks Peter, I will try to contact @Ekopalypse re: NppLspClient
Do you have his email address?
I followed his link to: https://community.notepad-plus-plus.org/user/ekopalypse?_=1732865572982 but didn’t see any way to post a message for him.Thanks
-
Just for completeness, another plugin I know of that implements lsp was created by @kered13 here but I’m not aware of its status.
-
@PeterJones said in Does Notepad++ support Language Server Protocol (LSP):
though it’s not feature-complete yet
If you, or anyone else, would like to have a missing feature implemented in the LSP client, feel free to start a discussion on github because for me it already has everything I need ;-)
Even though the goal is to have a 3.17 compatible client I’m happy to listen to suggestions on what to implement first.
-
@Ekopalypse “Npp 8.6.3, 8.6.4 and 8.7.6 have introduced changes that disable notifications that this plugin relies on, and is therefore not compatible with these versions. Sorry for the inconvenience.”
So it does not work anymore? Any alternatives?
-
It should work with versions other than those reported. The problem with those versions is that they disabled the notifications that the plugin relies on, without the ability to re-enable them. Later Npp versions have given the plugins the ability to request them again, which each subsequent plugin version does and so should actually work.
-
From the way that it’s worded it seems the plugin only works correctly with versions before these ones. This change would make all the difference
… and is therefore not compatible with these specific versions.
-
thanks - I’ve changed it accordingly.