Can anyone confirm whether or not it is possible to create tooltips for specific text in an editor window? If not, would it be possible to add a feature request @logan?
I actually have another use case for a custom language server as well, so it might be worth investing the time to research how to do this. In addition to the gem extension, I would like to create an extension for Stimulus JS.
Do you know of any simple examples of a custom language server (preferably vanilla JS) and how to go about integrating that into Nova? Perhaps, another Nova extension doing something similar? I could use some pointers where to start :D.
The best looking thing I’ve found is VSCode’s language server extension guide, which looks like it’s got a fairly detailed implementation guide and is Node.js/TypeScript. It shows how to set up a server connection with a client and handle protocol messages. It uses vscode-languageserver-protocol, which despite it’s name seems to not be too VSCode specific (I use it in the nova TypeScript extension). It also uses vscode-languageserver and vscode-languageserver-textdocument; I don’t know how VSCode specific they are, but I kind of expect they’d work for Nova since they’re below the LSP.
We have definitely had more than one request to support Hover extensions that do not use the language server protocol (in an API similar to completions and issues). It’s on our list of feature requests!