Trying to create my first plugin

Hi,

I have tried using nvim with built-in LSP for a while. It is good, but still can not do a lot of stuff that Rider can do. What I like though are the inline diagnostics like in this picture (Unexpected symbol error, Undefined global warning, etc)

Since I could not find any setting like that in Rider directly and also could not find such a plugin (maybe I had just used wrong keywords to find it), I was thinking I could write my own. I managed to run some of the samples for the Rider plugin. My question is though: Is this even possible to do? For example, there is this virtual text on the lines when debugging. Can those be used in my own plugin to show the diagnostics? If so, could you maybe point me to some documentation on this topic?

Thanks.

5 comments
Comment actions Permalink

Hi Denis

You need the Lua plugin for Lua development in Rider. EmmyLua is the most popular. If you have any problems with it, please report issues to plugin developers. If you want to continue creating your plugin, please follow this article

I hope this helps! 

0
Comment actions Permalink

Hi,

sorry for the confusion. The lua in the image is just an example. What I care about are the inline diagnostics. That is what I want in Rider.

I am familiar with the article you suggest. I went through it, managed to run some of the plugin examples. What I would like to know: Is it possible to do what I want? I found some documentation to the plugin development, but could not find anything.

0
Comment actions Permalink

He Denis! 

The short answer is yes. Here is a plugin with similar functionality. Would you mind if I invite you to our internal Slack channel? This is the best way to get proper help with plugin development. 

1
Comment actions Permalink

Hi,

thank you for the tip. The plugin you mentioned looks like something I would like to create. Looks like I indeed used wrong search terms. It's not for Rider, but it's nice starting point for some inspiration.

Yes, please invite me to the slack channel, in case I'll need any further help.

Thanks again.

 

0
Comment actions Permalink

Denis, 

thanks! You'll receive an invitation soon. 

0

Please sign in to leave a comment.