-
-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Ruby syntax coloring in terminal #29
Comments
As far as I know symbols are a kind of attribute / variable so they are intentionally colored with You can easily override styles of Nord Vim by adding something like this to your augroup nord-overrides
autocmd!
autocmd ColorScheme nord highlight rubySymbol ctermfg=14
augroup END where the You can check out this (terminal mode) code block to see which color is assigned to which number. |
Hmm perhaps I have something set up wrong then? When I switched from Gotham to Nord, I seemed to lose a lot of variation in my syntax highlighting for Ruby. Examples:
If these are on purpose, that's totally fine, I can apply my own overrides based on your advise above, but I just wanted to make sure I'm getting the experience as-intended. Thanks for your patience and help! |
Well, this is indeed not the way it should be styled. I created the theme by filtering the official Vim language syntax definition files for color highlights, but some group names do not always fit perfectly into their function. The Your bullet point 2 should be fixed if the both issues described above are solved. The iterator variable is in the end, like the name says, a variable. About the comparison with the other theme: |
I agree with you 100% about the themes having different preferences behind the design of it. I don't want a 100% match with Gotham or any other theme for that matter. I appreciate your hard work on this and really love Nord! I look forward to the update! |
I've pushed the changes to 🌱 improvement/ghi-#29-ruby-syntax-coloring-in-terminal.
@hahuang65 I'd be nice if you can test the changes and provide some feedback, maybe there are more groups which need some adjustments 😄 |
Awesome! Been out of town last couple of days, will get back to you asap, hopefully tomorrow or Tuesday at latest! |
@arcticicestudio that looks pretty good. The bold is a nice touch. |
Well, for example the snippet trackable_email_items.create(item: item) should colorize the Both are implemented in the theme, but for some mysterious reason vim ignores it 😞 Offtopic: Would you tell me the name of the font on the screenshot? 😆 |
So here's what my file looks like with the changes from the branch: Is the The font in the screenshot is Input Mono If you're a font snob, I'd also recommend Hack. |
No, it should normally be colorized with I'm using Source Code Pro Medium everywhere, but I really like the rounded glyphs of the font on your screenshot. Thanks for the link 😉 |
Here's a link to my Also here's all my Perhaps I should take out the |
Your code on the screenshot looks fine except the missing coloring for the I've only copied the lines seen on the screenshot, maybe it is related to the fact that vim only highlights these methods if they exist? Can you post the whole code (if it is not private)? |
Hey, sorry for the really late reply. Was out of town for a friends wedding. So I think you might be right, although, all the methods you listed The code above is the full code. It doesn't look like methods are highlighted even if they are defined in the file. Do you have it working with highlighting methods? Can you post me a screenshot or example? |
I'll merge this change and ship a new release version as it seems to work fine for you. |
🚢 Shipped with release version 🏷 0.5.0. |
For the Ruby language, are the symbols intentionally a white-ish color? If I prefer to have it stand out among other code, can I change it somehow?
The text was updated successfully, but these errors were encountered: