m00qek / baleia.nvim

Colorize text with ANSI escape sequences (8, 16, 256 or TrueColor)
138 stars 5 forks source link

Possibility to use colors from colorscheme #7

Closed fuadsaud closed 2 years ago

fuadsaud commented 2 years ago

The following is the comparison between a kaocha test result when run from conjure (with baleia enabled on the buffer) and when run in the terminal. My understanding is that the latter works because the terminal emulator has ANSI colors properly mapped. Would it be possible to have the same behavior when using baleia

Screen Shot 2022-04-22 at 19 42 32 Screen Shot 2022-04-22 at 19 42 46
m00qek commented 2 years ago

Does your color scheme set values to the variables g:terminal_color_*?

m00qek commented 2 years ago

If it does not Baleia will default to NR_8 color codes. Check :help cterm-color

fuadsaud commented 2 years ago

@m00qek got it! Thanks for clarifying. My colorscheme was not setting those and after setting it works perfectly.