ayamir / nvimdots

A well configured and structured Neovim.
BSD 3-Clause "New" or "Revised" License
2.92k stars 461 forks source link

Does language check have a different font color with the code ? #358

Closed goodpaperman closed 1 year ago

goodpaperman commented 1 year ago

I open a shell script, and find many check errors, these error has the same font color with shell code, and I could NOT distinguish them easily: 图片

Is there a different color setting for the check results ?

goodpaperman commented 1 year ago

And any switch to hide the check results ?

ayamir commented 1 year ago
  1. Your colorscheme likes so wired. You can use catppuccin and check what's wrong.
  2. https://github.com/ayamir/nvimdots/issues/178#issuecomment-1210538073
goodpaperman commented 1 year ago

Using catppuccin, it seems worse that before: 图片

How can I check the reason?

ayamir commented 1 year ago

What terminal do you use? Does it support 256 color? Use wezterm or kitty.

goodpaperman commented 1 year ago

I tried wezterm, it's good: 图片

But too few light background schemes (only catppuccin-latte / delek / morning / quiet / shine / zellner), and all of them are in low contrast, too difficult for me to see code clearly, so I give up。

To walk away this problem by changing terminal is not a good idea, I think. As people are familiar with their own terminals, change on terminal may take a lot of time.

So, is there any way just to change the color settings of selected scheme?

ayamir commented 1 year ago

But too few light background schemes (only catppuccin-latte / delek / morning / quiet / shine / zellner), and all of them are in low contrast, too difficult for me to see code clearly, so I give up。

You can add more ligth theme on your own, like https://github.com/ayamir/nvimdots/issues/353. Here you can find awesome colorschemes. By the way, edge theme support light theme: https://camo.githubusercontent.com/22da6b9df8d951367069ee2efcd19bb4dc1813e56c51bd63b661f0463da16280/68747470733a2f2f6769746c61622e636f6d2f7361696e6e68652f696d672f2d2f7261772f6d61737465722f656467652d6c696768742e706e67 You can set it without installing other plugins.

goodpaperman commented 1 year ago

Effect of using scheme 'edge' with wezterm: 图片

Supplement I was using mac term ssh login a CentOS 7. According to this article

I test wezterm: 图片

and mac term: 图片

wezterm support true color, but mac term only support 256 color, is that the key difference?

ayamir commented 1 year ago

First of all, You must set your terminal theme to a light theme before using nvim's light theme. This is also true for dark theme. Secondly, as you can see, the test result of mac terminal is abnormal. I don't use mac and mac builtin terminal too, so I have no idea about it. You either need to make it works normal like wezterm or use a terminal which can provide correct color support such as wezterm or kitty.

goodpaperman commented 1 year ago

Okay,I‘ll try GNU terminal on Ubuntu, if there is no problem, this is a certain problem about mac terminal

Supplement I use light scheme on mac term: 图片