1

My terminal profile is set by time and changes between dark and light. The color-scheme is fine-tuned to my personal needs, I would love to make Neovim use the terminal colors profile.

Is it possible to apply no theme at all, but still have coloring?

1

2 Answers 2

0

If you have in init.vim:

set notermguicolor

Neovim will use the termbg and termfg parameter of the colorscheme that reuse as much as possible the 16 color defined in your terminal settings.

To achieve what you want I would:

  • set noterminalguicolor
  • use a 16 colorscheme like dim

You could be interested by the following document: Consistent terminal colors with 16-ANSI-color Vim themes

You can also force Neovim to only use the first 16 color by having in your init.vim

set t_Co=16
2
  • thank you, that does exactly what I want.
    – mad_mosel
    Commented Jun 29 at 11:55
  • Thanks for the feedback! I'm glad we could help you :-) Welcome to Vim! Commented Jun 29 at 12:33
0

Is it possible to apply no theme at all, but still have coloring?

No, because the syntax highlighting is provide by the theme. So the question doesn't make sense, but you probably want to disable the background colors.

See my answer on this question https://vi.stackexchange.com/a/45123/5078

2
  • I was wondering what it does to the syntax highlighting. You are right - mostly I want to get rid of the background coloring. My concern about only changing the background is, that if a dark theme is enabled in neovim, the text will usually be light. If then a light profile is enabled in the Terminal this could cause visibility problems.
    – mad_mosel
    Commented Jun 29 at 12:00
  • There is no way around that. Themes have to contrast with the background. You need to set background=light or background=dark to inform syntax which one you want. Or pick a theme manually that has the syntax highlighting you want. Either way, if you're relying on the terminals background and telling the theme to ignore the background, you're going to have this liability. Commented Jun 29 at 22:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.