estilo
estilo copied to clipboard
Question: conditional styles
In oceanic-next, I have support setup for conditional italics/bolds, if the terminal supports it.
let s:bold = ""
if exists('g:oceanic_next_terminal_bold')
let s:bold = "bold"
endif
let g:oceanic_next_terminal_bold = get(g:, 'oceanic_next_terminal_bold', 0)
And is used like so
call <sid>hi("markdownBold", s:gui0A, "", s:cterm0A, "", s:bold)
Would something like this be supported by estilo?
I plan to support conditional styles in colorschemes, but I still don't know how to implement it in a template based generator. I'm open to ideas, do you have any suggestion?
No ideas right now, but can try to think of something and make a PR
I'll try this weekend
I was thinking about this, and probably can be solved by some conventions.
let s:bold = ""
if exists('g:<<colorscheme_name>>_terminal_bold')
let s:bold = "bold"
endif
let g:<<colorscheme_name>>_terminal_bold = get(g:, '<<colorscheme_name>>_terminal_bold', 0)
The issue is that if some users change their colorscheme often they end up having a lot of colorscheme-specific variables in their .vimrc
. We can have a convention like this:
let s:bold = ""
if exists('g:estilo_terminal_bold')
let s:bold = "bold"
endif
let g:<<estilo_name>>_terminal_bold = get(g:, 'estilo_terminal_bold', 0)
I'd be happy to give it a crack, but I'm not that confortable with Javascript, but this could be fun 💃