-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat(highlights): Added some missed highlights primarily for markup languages #123
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything looks good as far as I can tell.
nice work!
@AlexvZyl can this one get merged? It's kind of miserable to work on markdown files without it. |
Can we make to top heading yellow instead of red? We try to reserve red. Other than that, this looks awesome, thanks! |
@AlexvZyl Are you referring to the example with Neorg that I attached to the Pull Request? Or for the Markdown examples that @5-pebbles posted? |
I am referring to the example that you attached. |
Neorg headings were linking to different tags. I specifically designated the `.md` heading markups and linked them to the `.norg` heading markups so that they are synchronised. Also removed `red` from the heading hls, since it is designated for other uses.
Neorg seems to link to arbitrary tags (like Macro, Delimiter, etc.) for its heading highlights. So I decided to specifically designate highlight groups for markdown headings and linked them to the corresponding Neorg highlight tags. The heading highlights for markdown and neorg will now be synchronised. H1 to H3 are bold faced. H4 is regular faced. H5-H6 is italicised. |
Also, (sorry to spam), I've found that there are some buggy interactions with the highlights when also using The Heading highlights for When not using |
Perfect, thanks! |
Definitely seems like it is a noice issue. You can open an issue there and link this PR. |
Well, then that is not on us :) I will merge this this evening after I fixed our CI. |
Thanks again! |
I have ported over most changes from #110 prior to the restructuring. Some were dropped because I found that they were redundant.
The rationale for this PR is I found that this theme does not have proper support for Neorg (and most other) markup files. I've selected formatting for highlight groups based on how Catppuccin and Tokyonight did it, though I've tried to keep it true to Nordic's flavour.
Here is a side by side comparison of the result: