Skip to content

Commit

Permalink
feat: highlight CocHighlighText (closes #19)
Browse files Browse the repository at this point in the history
  • Loading branch information
luisiacc committed Aug 4, 2022
1 parent 38c1a6d commit 56aaf29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/gruvbox-baby/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ function M.setup(config)
CocExplorerFileModified = { fg = c.magenta },
CocExplorerFileHidden = { fg = c.comment },
CocExplorerHelpLine = { fg = c.magenta },
CocHighlightText = { bg = c.background_dark },

EasyMotionTarget = { fg = c.red, style = "bold" },
EasyMotionTarget2First = { fg = c.red, style = "bold" },
Expand Down

4 comments on commit 56aaf29

@chaudry-786
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This completely hides it. Is there another background which would be distinct form visual?
This is how original gruvbox dealt with it.
Screenshot from 2022-08-05 00-08-37

@luisiacc
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original gruvbox reverses the colors on visual selection, which is weird IMO.

Wdym it completely hides it, I tried it locally and it selected the words with a darker color than the background.

@luisiacc
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want a custom color that would fit with you, there is a way to overwrite/add highlight groups easily without much trouble as seen in the config section, which would be something like:

vim.g.gruvbox_baby_highlights = {CocHighlightText = {fg = "#123123", bg = "NONE", style="underline"}}

colorscheme gruvbox-baby

@chaudry-786
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh sorry, I choose even darker background which was pretty much same as "c.background_dark" so it seemed like new CursorHold highlight group did nothing.
I will look into manually overriding it as suggested

Please sign in to comment.