How do I fix the current line color using solarized vim dark mode using Termdebug?

83 Views Asked by At

I'm using solarized with vim and when I'm debugging (using Termdebug), the current execution line is missing:

enter image description here

I've been working around the issue by switching to light mode:

enter image description here

If I go back to dark, then I have a cursor color :

enter image description here

It is not a good color though. The text is hardly readable.

What might be the problem? Can I fix it or are there any workarounds?

I'm using gnome terminal 3.28.2 and am using the solarized color scheme for it.

1

There are 1 best solutions below

2
On BEST ANSWER

Solarized hasn't been updated in 12 years. Meanwhile, a lot happened in Vim that Solarized doesn't support. Like the TermDebug feature that comes with two new highlight groups: debugPC and debugBreakpoint.

  • Because your chosen colorscheme ignores them, you get the default styling, which may or may not work.
  • Because your chosen colorscheme is abandonware, it didn't magically improve in 12 years. It is at least as bad as it ever was, and it has always been the worst. This might explain that weird behavior on dark > light > dark.
  • Because your chosen colorscheme is written in a user-hostile way, it is harder than necessary to modify it to suit your needs.

If you really want to keep using Solarized, I would recommend you drop the hopelessly broken original in favor of a hackable competently made and maintained interpretation like solarized8.