Skip to content

Can Visual selection have muted colors? #6

@oxcrow

Description

@oxcrow

Hello,

Thanks for creating this theme. It's my favorite.

Can you kindly make the colors for the visual selection to be muted gray?

Currently the bright pink color that you use for visual selection makes it difficult to read code, because modern LSPs automatically selects and highlights the current word under cursor, and its references/uses (as seen below).

I modified the code to use muted gray colors which makes the code easier to read.

If you like the colors, could you kindly add it to the theme as defaults?

Thank you
~oxcrow

diff --git a/colors/sunbather.vim b/colors/sunbather.vim
index 6528bbe..e693882 100644
--- a/colors/sunbather.vim
+++ b/colors/sunbather.vim
@@ -152,7 +152,11 @@ call s:h("StatusLine",    {"bg": s:bg_very_subtle})
 call s:h("StatusLineNC",  {"bg": s:bg_very_subtle, "fg": s:medium_gray})
 call s:h("VertSplit",     {"bg": s:bg_very_subtle, "fg": s:bg_very_subtle})
 call s:h("Title",         {"fg": s:dark_blue})
-call s:h("Visual",        {"fg": s:norm, "bg": s:visual})
+if &background == "dark"
+    call s:h("Visual",        {"fg": s:black, "bg": s:medium_gray})
+else
+    call s:h("Visual",        {"fg": s:black, "bg": s:light_gray})
+endif
 call s:h("VisualNOS",     {"bg": s:bg_subtle})
 call s:h("WarningMsg",    {"fg": s:yellow})
 call s:h("WildMenu",      {"fg": s:bg, "bg": s:norm})

Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions