vim-indent-guides icon indicating copy to clipboard operation
vim-indent-guides copied to clipboard

[Feature] Spectrum/Sequence of Colors

Open unenglishable opened this issue 10 years ago • 7 comments

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.

unenglishable avatar Sep 09 '14 09:09 unenglishable

:+1: this feature would be awesome.

mikrofusion avatar Feb 06 '15 19:02 mikrofusion

:+1:

chrisfishwood avatar Feb 06 '15 19:02 chrisfishwood

I really like the idea. :+1: for this!

rafaelrinaldi avatar Oct 04 '15 12:10 rafaelrinaldi

me to

sagax avatar Oct 13 '15 21:10 sagax

Rainbow for the win! 👍

fvosberg avatar Feb 14 '19 15:02 fvosberg

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'} 

phatsk avatar Jun 19 '20 18:06 phatsk

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.

alerque avatar Feb 21 '23 18:02 alerque