Dim version 1.2.0: Support for neovim >= 0.10, and dimmed tab lines

Dim is a 4-bit clone of Vim’s default color scheme with dimmed interface elements and consistent syntax highlighting between light and dark modes.

neovim >= 0.10.0

When loaded, Dim clears all current highlights and then sets new ones using cterm attributes. This ensures both terminals with limited color palettes, and terminals with 24-bit color have their highlights set up correctly.

However, since neovim 0.10.0, the termguicolors configuration option is enabled by default in terminals that support 24-bit color.

                *'termguicolors'* *'tgc'* *'notermguicolors'* *'notgc'*
'termguicolors' 'tgc'	boolean	(default off)
                        global
        Enables 24-bit RGB color in the |TUI|.  Uses "gui" |:highlight|
        attributes instead of "cterm" attributes. |guifg|
        Requires an ISO-8613-3 compatible terminal.

        Nvim will automatically attempt to determine if the host terminal
        supports 24-bit color and will enable this option if it does
        (unless explicitly disabled by the user).

This configuration option ignores cterm attributes in favor of their gui counterparts. Since Dim cleared the gui highlight attributes, using it with termguicolors enabled produced unhighlighted buffers.

To remedy this, Dim 1.2.0 now explicitly disables termguicolors when loaded, reverting to the previous situation and restoring its highlighting:

set notermguicolors

Dimmed tab lines

Aside from adhering to 4-bit colors, another advantage of using Dim over Vim’s default color scheme is that it dims interface elements like line numbers and folds. Dim now dims tab lines as well, using 7 (“white”) and 8 (“bright black”) as background and foreground colors for tabs on light backgrounds, and inverted on dark backgrounds.