-
Notifications
You must be signed in to change notification settings - Fork 530
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
Support dart highlighting #226
Comments
Thanks for your proposal! I basically threw your suggestion verbatim into #229. A A quick manual test seems to be working as intended to me, but can you verify that it works for you as expected, since I'm unfamiliar with Dart? |
I also don't understand the intention behind |
@joshdick just butting in as I use dart a lot and would love to see the highlighting improved. I think what @l0nax means is that the gist adds a bunch of core classes (similar to Node JS apis or web api's in JS) to the |
As @Akin909 said: The |
@joshdick do you have some "reference" colors? |
@l0nax All colors currently used by the theme are located here: https://github.com/joshdick/onedark.vim/blob/master/build/build.js#L8 The build system substitutes them into the theme thusly: https://github.com/joshdick/onedark.vim/blob/master/autoload/onedark.vim#L5 |
Yes, but do you have a scheme like "operators are colored red", ... I tried to use the colors from the other languages, but it would be nice to have the same colors for (mostly) the same types over all languages. |
Those types of relationships are defined in
I understood this, but the gist you linked contains |
@joshdick, @l0nax based on the colors in onedark.vim/colors/onedark.vim Line 364 in c0f2207
s:purple for StorageClass e.g. call s:h("jsStorageClass", { "fg": s:purple }) and call s:h("perlStatementStorage", { "fg": s:purple }) . As is also the case for class keywords (js is the only example in that file)
Dark red (based on searching in that file) only seems to be used for template strings 🤷 |
@joshdick you're right. |
@Akin909's comment made me dig into this further, see my comments in #229. @l0nax Were your color changes based on personal preference due to disliking theme's default colors when used with https://github.com/dart-lang/dart-vim-plugin ? That plugin appears to be using sensible default highlight groups that all point at ones that already exist in onedark.vim. Finally, @Akin909's comment made me realize that the main |
I made those changes because dart files did appear completely yellow. |
Looking at the highlighting for dart in using Without trying to undermine the original issue I think in dart especially in flutter most things are classes so are highlighted as such so you see a lot of the same highlight come up, but I think this is more due to language's usage in flutter. I personally think whilst I like the special highlighting for |
Why the darthighlighting branch was not merged? |
Description
Currently, using this color scheme while writing dart/ flutter code looks like this:
Which isn't beautiful because most text is colored yellow.
Proposal
Since the official dart plugin (https://github.com/dart-lang/dart-vim-plugin) does create the syntax keywords, they can be used to colorize the specific words.
I've created some highlight definitions to manually make the theme work better with dart/ flutter code:
Where
dartCoreClasses
comes from here: https://gist.github.com/kika/7a3a37ab0edeb1cc54c225ff4fa00afc (renameddartFlutterClasses
).Screenshot after changes:
NOTE: Thanks for your awesome theme :D
The text was updated successfully, but these errors were encountered: