Skip to content
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

How do I get highlight groups for vimwiki .md please? #15

Open
Whyglobaleyes opened this issue Jul 18, 2022 · 1 comment
Open

How do I get highlight groups for vimwiki .md please? #15

Whyglobaleyes opened this issue Jul 18, 2022 · 1 comment

Comments

@Whyglobaleyes
Copy link

Hello Again,

So I've got a colorscheme for markdown that's working well - and shell , vim, html and yaml filetypes.

But when I load the vimwiki/vimwiki plugin all that syntax formatting disappears.

My gut feeling is that I need a "vimwiki" option in the "Pinto > settings > choose which keywords you want to use" setting. It feels like there's a whole long list of highlight groups that I should specify for something like vimwikimarkdownH1 etc.

Can you tell me how I should do this please?
kr

@alajmo
Copy link
Owner

alajmo commented Jul 20, 2022

That part of pinto is a bit buggy, but it's possible to add your own highlight groups. I don't use vimwiki, but it seems they have their own syntax file (https://github.com/vimwiki/vimwiki/blob/master/syntax/vimwiki.vim#L377).

So for instance, to add keyword VimwikiCode, you would have to create a new Keyword Group (click the + mark after the Keyword Groups header) and name it VimWiki, then add a new entry:
VimwikiCode -> PreProc.

You would have to do it for all the keywords you want to style. However, my suggestion would be to just style the major/minor groups, since VimWiki defaults to them (you won't get the granularity though but there are a lot of keywords to add...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants