PyvesB / eclipse-solargraph

:gem: Ruby development tools for Eclipse.
https://marketplace.eclipse.org/content/ruby-solargraph
Eclipse Public License 2.0
30 stars 6 forks source link

Help with customising behaviour. #15

Closed myshkin-uk closed 3 years ago

myshkin-uk commented 3 years ago

If there is a better place to ask, please send me there.

I have installed solargraph with my eclipse IDE SOLELY TO GET A SYNTAX-HIGHLIGHT EDITOR FOR RUBY. I used to have one but it evaporated on an eclipse upgrade.

I have no clue what a language server is, or what else solargraph could do for me, and I probably don't care.

I have some simple issues

I HATE the colours in the syntax highlighting ( comments are such a light colour as to be unreadable on my monitor ) and haven't a clue how to alter them. The string-auto-complete after I type "don't" in a comment is driving me mad

For Java I can just drill down to

a syntax-colours page and set them. an behaviour page and turn off auto-suggest.

Can't see anything like that for solargraph in the eclipse drop-down pages..

So where do I start please?

PyvesB commented 3 years ago

Hello @myshkin-uk ! 👋🏻

I have no clue what a language server is, or what else solargraph could do for me, and I probably don't care.

Basically the language server gives you additional features such as code completion, documentation hovers, rename refactoring, find references, jump to declarations, code outline, and a few others. If you don't want those features and only care about simple syntax highlighting, you can disable the language server by going to Preferences -> Language Servers and untick the three entries pertaining to Solargraph.

I HATE the colours in the syntax highlighting ( comments are such a light colour as to be unreadable on my monitor ) and haven't a clue how to alter them.

You can right-click in a Ruby editor and use the Switch to Theme... option. Additional themes can de added in Preferences -> TextMate -> Theme.

The string-auto-complete after I type "don't" in a comment is driving me mad

This is a known limitation of the tm4e project, I previously reported an issue about this here: https://github.com/eclipse/tm4e/issues/227

However, I believe you can disable the auto-complete for apostrophes completely by oing to Preferences -> TextMate -> Language Configurations.

Hopefully this helps clarify things a little. 😉

myshkin-uk commented 3 years ago

Thanks - at least it gives me a start :-) I did wonder about themes - but other editors seem to have their own independent settings. Ah well...

David

myshkin-uk commented 3 years ago

Yup - switching theme looks great - thanks. I was stuck on 'solarised ..." which makes comments a very light grey.