virt-column.nvim icon indicating copy to clipboard operation
virt-column.nvim copied to clipboard

Various colors for each line

Open 0xTadash1 opened this issue 2 years ago • 2 comments

Currently all columns are the same color. I have it set in VSCode as "80=gray, 100=yellow, 120=red". It would be useful to be able to do the same with virt-columns.

0xTadash1 avatar Jan 01 '23 14:01 0xTadash1

would be nice :+1: I'll try to find some time to add this, but it might take a while sorry

lukas-reineke avatar Jan 10 '23 01:01 lukas-reineke

No problem :smiley:

Well, I created a PR #34 because I found we could "almost" accomplish the feature with only 3 lines of changes. Instead of VirtColumn, this PR uses VirtColumn1, VirtColumn2, ...VirtColumnN instead of VirtColumn. So this change requires the user to update the config.

My workaround plan is to make VirtColumn the default highlight group, so that when VirtColumnN is set, column N will use VirtColumnN instead.

What do you think about this?

0xTadash1 avatar Jan 10 '23 18:01 0xTadash1