简体   繁体   English

Neovim 中的主题 Colors 故障

[英]Theme Colors Glitch in Neovim

With termguicolors enabled, some themes seem to color comments and other content the same as the background in Neovim.启用termguicolors ,某些主题似乎将评论和其他内容的颜色与 Neovim 中的背景相同。 The current uncooperative themes:当前不合作的主题:

A screenshot with challenger_deep :带有challenger_deep的截图: 截屏

As you can see, <!doctype html> on line 1 is invisible, as well as the content between the h1 tags.如您所见,第 1 行的<!doctype html>以及h1标签之间的内容是不可见的。

I have tried setting $TERM to different values, to no effect.我尝试将$TERM设置为不同的值,但没有效果。 Also, this happens in alacritty, xfce4-terminal, and termite (all the terminals I have installed).此外,这发生在 alacritty、xfce4-terminal 和白蚁(我安装的所有终端)中。 How can I fix this?我怎样才能解决这个问题?

As it turns out, my font was to blame.事实证明,我的字体是罪魁祸首。 It does not have an italic variation, and the terminals simply output nothingness if a font has no italics but a program wants to output italics.它没有斜体变体,如果字体没有斜体但程序想要 output 斜体,则终端只是 output 虚无。 I changed the font, and everything works fine now.我更改了字体,现在一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM