Coder Social home page Coder Social logo

Comments (6)

GordianDziwis avatar GordianDziwis commented on August 16, 2024

Does setting :set termguicolors help?

from base16-vim.

arcnmx avatar arcnmx commented on August 16, 2024

That doesn't have any effect as far as I can tell.

from base16-vim.

GordianDziwis avatar GordianDziwis commented on August 16, 2024

Can you give a minimal vimrc to reproduce?

from base16-vim.

arcnmx avatar arcnmx commented on August 16, 2024

Oh, was this resolved? I'm currently using a fork to resolve it.

Can you give a minimal vimrc to reproduce?

Sorry I missed this, if this is why this was closed I believe it's literally just set cursorline - what's unknown here? The PR to fix it was reverted due to unspecified breakage, but the original issue appears to be pretty self-evident:

  1. non-gui error highlights are set up as fg=base00(default background) bg=base08(deleted/red)
  2. set cursorline applies bg=base01(lighter background) to the current line

So by design, you get text with a foreground of base00 (black) and a background of base01 (slightly less black) - which isn't really a valid combination of base16 colours. I'm not sure whether vim has a concept of highlighter "priorities", but the issue appears to be that CursorLine takes precedence over ErrorHighlight. I found some relevant discussion though, if it helps. Presumably a few options for a solution are to use reverse again as the original PR attempted to do, or to use a foreground colour for ErrorHighlight that wouldn't be invalid and unreadable when mixed with other contexts.

from base16-vim.

GordianDziwis avatar GordianDziwis commented on August 16, 2024

The breakage comes from, that the template is currently set up in a way that thereverse option also applies for gui colors.
If you want to to upstream there are two options:

  1. Change the template in a way, that it is possible to set cterm=reverse without setting gui=reverse
  2. Solve the conflict only by setting ctermfg and ctermbg variables.

from base16-vim.

JamyGolden avatar JamyGolden commented on August 16, 2024

Since there hasn't been any movement here in a while I'm going to close this issue, but we can re-open if something more happens.

from base16-vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.