Giter Site home page Giter Site logo

Comments (2)

antoineco avatar antoineco commented on August 21, 2024

@rameshsanth this looks more like a problem of interoperability than a problem with the color scheme itself.

What color would you suggest instead of the current behavior?

from everforest.

antoineco avatar antoineco commented on August 21, 2024

I'm going to go ahead and close this issue because it is old and inactive, but as a final word please note that it is a well accepted convention for color schemes to use the same background color for CursorLine
/CursorColumn and StatusLine. I'm not saying it is necessarily a good practice, but here are some examples of this convention among very popular Vim color schemes:

🎨 Gruvbox

gruvbox

🎨 Nord

nord

🎨 Dracula

dracula

My personal recommendation is to use a syntax highlight override inside your vimrc and adjust the cursorline color to something that matches your preferences.

In the example below, I'm setting it to Everforest's bg_green color (which doesn't clash with CursorLine but clashes with DiffAdd so it wouldn't be a good default either):

📄 .vimrc (Vim)

" .vimrc

" Apply custom highlights on colorscheme change.
" Must be declared before executing ':colorscheme'.
augroup custom_highlights_everforest
  autocmd!
  " cursorline
  autocmd ColorScheme everforest 
  \       hi CursorLine   guibg=#445349 |
  \       hi CursorColumn guibg=#445349
augroup END

colorscheme everforest

📄 init.lua (Neovim)

-- init.lua (Neovim)

-- Apply custom highlights on colorscheme change.
-- Must be declared before executing ':colorscheme'.
grpid = vim.api.nvim_create_augroup('custom_highlights_everforest', {})
vim.api.nvim_create_autocmd('ColorScheme', {
  group = grpid,
  pattern = 'everforest',
  command = -- cursorline
            'hi CursorLine   guibg=#445349 |' ..
            'hi CursorColumn guibg=#445349'
})

vim.cmd'colorscheme everforest'

Result:

result

from everforest.

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.