vim-indent-guides
vim-indent-guides copied to clipboard
[Feature] Spectrum/Sequence of Colors
It would be interesting to use a (definable) sequence of colors as opposed to just Even/Odd.
Line: 1, 2, 3, 4, 5, etc.
Color: 1, 2, 3, 4, 5, etc (mod Color length)
I'm not sure how to implement this, but if anyone has any ideas, I'll try it out and put in a pull request if it turns out well.
:+1: this feature would be awesome.
:+1:
I really like the idea. :+1: for this!
me to
Rainbow for the win! 👍
I'm going to throw my hat in here and say this would be great. An idea would be to have "palettes" that the user could configure. Example:
" Set of 'solar' guide colors; e.g. red, yellow, orange
let g:indent_guides_palette = "solar"
let g:indent_guides_palette = "monochrome_dark"
let g:indent_guides_palette = "monochrome_light"
" Let users specify a list of colors
let g:indent_guides_palette = {'c93bac', 'a01070', '930054'}
I personally don't think it is a great idea to hard code some specific color scheme or schemes into this plugin, but I would be willing to facilitate a PR if somebody wanted to make it more configurable. In particular the color selector could be changed to either use a lookup table (with a modus for overflow handling) that the user could provide to match their preferences or it could just be a hook function that gets used if set. Then people could return colors however they want programmatically.
I'm unlikely to work on this myself but will facilitate a PR if somebody works something up.