Skip to content

Give darken a target so the telescope background can be darker - #121

Open
rokokol wants to merge 1 commit into
RRethy:masterfrom
rokokol:darken-target
Open

Give darken a target so the telescope background can be darker#121
rokokol wants to merge 1 commit into
RRethy:masterfrom
rokokol:darken-target

Conversation

@rokokol

@rokokol rokokol commented Aug 11, 2026

Copy link
Copy Markdown

Fixes #120.

darken(M.colors.base00, 0.1) cannot return anything but base00, because darken blends its argument towards base00 rather than darkening it. Its seven other callers depend on exactly that — darken(base0B, 0.85) is how DiffAdd's background is arrived at — so this adds an optional target instead of changing what the function does by default.

Measured on both stock schemes, nvim --clean with the plugin prepended to runtimepath:

TelescopeNormal TelescopePromptNormal TelescopePreviewLine DiffAdd DiffDelete
default-dark before #181818 #343434 #282828 #2C2F24 #261C1C
default-dark after #151515 #343434 #282828 #2C2F24 #261C1C
default-light before #F8F8F8 #DBDBDB #E8E8E8 #EAEDE3 #F0E6E5
default-light after #DFDFDF #DBDBDB #E8E8E8 #EAEDE3 #F0E6E5

Normal is #181818 and #F8F8F8 respectively, so TelescopeNormal moves off it and nothing else moves at all.

darken(M.colors.base00, 0.1) cannot return anything but base00, because
darken blends its argument towards base00 rather than darkening it. Its
seven other callers depend on exactly that, so this adds an optional
target rather than changing what the function does by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

darken(base00, pct) returns base00, so telescope's panes never get a ground of their own

1 participant