base16-nvim icon indicating copy to clipboard operation
base16-nvim copied to clipboard

Use cterm colors instead of gui colors

Open akorchemniy opened this issue 4 years ago • 1 comments

One advantage of of the original base16 is that it's possible to use with terminals that don't support true color (for example mosh). This implementation enables termguicolors, which breaks mosh. Is there a hard dependency on termgui or can the theme use ctermfg/bg instead?

akorchemniy avatar Jul 29 '21 20:07 akorchemniy

cterm is not implemented and I don't have plans on implementing. I'm open to PRs which add it and I'll review.

RRethy avatar Jul 29 '21 22:07 RRethy

Hey, this breaks colors if using base16-shell from tinted-theming with this commit: image

the commit before this one (3c6a56016cea7b892f1d5b9b5b4388c0f71985be): image

or am I missing something here?

mdkcore0 avatar Feb 07 '24 13:02 mdkcore0

Try adding set termguicolors in your init file.

RRethy avatar Feb 09 '24 16:02 RRethy

oh, thanks @RRethy, that fixed it for me! (used vim.o.termguicolors=true on lua for anyone wondering about that)

mdkcore0 avatar Feb 12 '24 20:02 mdkcore0

For lua, you should use vim.opt.termguicolors=true. As a general rule of thumb, vim.opt is preferred in init files.

RRethy avatar Feb 13 '24 03:02 RRethy