ctrlg icon indicating copy to clipboard operation
ctrlg copied to clipboard

[Feature]: Try to match terminal theme by default

Open mrjones2014 opened this issue 3 years ago • 0 comments

Similar Issues

  • [X] Before filing, I have searched for similar issues.

Description

I made the default theme (statically) to match my terminal theme (which is https://github.com/mrjones2014/lighthaus.nvim). Of course you can customize the colors through the config, but it would be really cool to try to automatically match the color scheme.

I believe we can do this with indexed colors or something? For example, for Kitty terminal emulator, kitty.conf has several named colors such as background, selection_foreground etc. but also has a set of colors like:

# normal
color0 #373C45
color1 #FF5050
color2 #44B273
color3 #ED722E
color4 #1D918B
color5 #D16BB7
color6 #00BFA4
color7 #8E8D8D

# bright
color8 #CCCCCC
color9 #FF4D00
color10 #10B981
color11 #FFFF00
color12 #0DB9D7
color13 #D68EB2
color14 #5AD1AA
color15 #FFFADE

How do we get and use these indexed colors? I think these numbered colors are a standard terminal thing.

Use Case

It would be cool to match the user's terminal theme without them having to set it in config.

mrjones2014 avatar Jan 28 '22 14:01 mrjones2014