You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: `options.darken.sidebars.enabled` and
`options.darken.sidebars.enable` both exist, but it is only one
option. The default in `config.lua` is `enable`, but it is
referred to as `enabled` as well (both in code and docs). It
used to be `enable` but was renamed to `enabled`, so it is
technically supposed to be `options.darken.sidebars.enabled` at
this time (as of this commit's parent).
Solution: Deprecate and revert `options.darken.sidebars.enabled` back to
`options.darken.sidebars.enable`. This brings it back in-line
with the changelog and runtime deprecation checks. `enable` is
also more consistent as this is what is used in other parts
of the config (e.g. config for `modules`).
Problem: In a couple of places, `options.darken.sidebars` is checked for
truthiness. This seems to be a typo of
`options.darken.sidebars.enable` which is a boolean (unlike the
former, which is a table by default and also documented as a
table). Tables are always truthy.
Solution: Use `options.darken.sidebars.enable` instead of
`options.darken.sidebars` in conditionals.
Reverts: fff3e20
Reverts: 806903cFixes: #306
Copy file name to clipboardexpand all lines: Usage.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -249,8 +249,8 @@ Another setting is for sidebars, which is configured in the `sidebars` sub-table
249
249
250
250
#### options.darken.sidebars {table}
251
251
252
-
The `sidebars` sub table of `darken` contains settings for sidebar-like windows. It has two configurations: `enabled` is used to assign a darker background
253
-
to the listed windows, and `list` specifies the windows to be included in the list.
252
+
The `sidebars` sub table of `darken` contains settings for sidebar-like windows. It has two configurations: `enable` is used to assign a darker background
253
+
to the listed windows, and `list` specifies the windows to be darkened.
NonText= { fg=spec.bg4 }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., '>' displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
49
49
Normal= { fg=spec.fg1, bg=transand'NONE' orspec.bg1 }, -- normal text
50
-
NormalSB= { fg=spec.fg1, bg=transand'NONE' orconfig.darken.sidebars.enabledandspec.bg0orspec.bg1 }, -- normal text
50
+
NormalSB= { fg=spec.fg1, bg=transand'NONE' orconfig.darken.sidebars.enableandspec.bg0orspec.bg1 }, -- normal text
51
51
52
52
NormalNC= { fg=spec.fg1, bg=inactiveandspec.bg0ortransand'NONE' orspec.bg1 }, -- normal text in non-current windows
0 commit comments