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

Conditional styles should be optional #58

Open
4513ECHO opened this issue Jan 20, 2022 · 0 comments
Open

Conditional styles should be optional #58

4513ECHO opened this issue Jan 20, 2022 · 0 comments

Comments

@4513ECHO
Copy link

Currently, g:{colorscheme_name}_bold and g:{colorscheme_name}_italic are always defined. However, it is not good for me. I don't want to define global variables. This feature should be able to be configured by colorscheme authors.

I think, it is better than now:

colorschemes:
  - name: 'name'
    background: 'background'
    palette: 'palette'
    conditional_styles: true

By the way, conditional styles are not working currently. You have to use :execute such as:

execute 'hi SomeGroup gui=' .. Bold .. ',underlined cterm=' .. Bold .. ',underlined' 

instead of:

hi SomeGroup gui=Bold,underlined cterm=Bold,underlined
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

1 participant