luisiacc / gruvbox-baby

Gruvbox theme for neovim with full 🎄TreeSitter support.
MIT License
402 stars 28 forks source link

Visual select color #27

Closed nagy135 closed 2 years ago

nagy135 commented 2 years ago

Hello, I m having issue with color of visual select. On the screenshot bellow, line with "scripts" is highlighted in line-select mode. The color is very close to the background and I dont know how to change it.

Am I doing something wrong or does everyone have this low contrast on highlights?

image

luisiacc commented 2 years ago

it definitely should be visible, what background contrast are you using? (soft, medium, dark)

jhthorsen commented 2 years ago

I got the same issue when I set vim.g.gruvbox_baby_transparent_mode = true.

This works for me with gruvbox_baby_background_color = 'dark':

local colors = require('gruvbox-baby.colors').config()
vim.g.gruvbox_baby_highlights = {Visual = {bg = colors.medium_gray}}
luisiacc commented 2 years ago

Seems like a problem with the transparent mode.

luisiacc commented 2 years ago

@nagy135 if you still have the problem after updating, please reopen

nagy135 commented 2 years ago

I dont think this is understood yet....because ye when I manually change that highlight color it works, and thats what I have now and I have no problem. BUT ...why do I need to do that ? I didnt set no transparent mode, all I did was installing package and putting vim.cmd[[colorscheme gruvbox-baby]] at the end of my vim.lua.

It would be good time to point out i m running NVIM v0.8.0-dev-885-ga5ed89c972 so that might have something to do with it

If anyone faces the same problem, this is all you need to do

-- without these 2 lines highlight is almost invisible {{{
local colors = require('gruvbox-baby.colors').config()
vim.g.gruvbox_baby_highlights = {Visual = {bg = colors.medium_gray}}
-- }}}
vim.cmd[[colorscheme gruvbox-baby]]
luisiacc commented 2 years ago

@nagy135 I made that color the default so you don't have to do that anymore.