Skip to content

v2.0.0-next.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@mvllow mvllow released this 27 Nov 18:58
· 12 commits to canary since this release
7de6b77

Changelog

What's new

  • Add extend_background_behind_borders
  • Add styles.bold with alternative styling when disabled
  • Add before_highlight hook to allow changing palette values and behaviours
  • Highlight diagnostic virtual text background with glow
  • Highlight StatusLineTerm & StatusLineTermNC, disable via enable.terminal = false
  • Increase contrast of search and other temporary visuals

Features

extend_background_behind_borders

Extend float backgrounds behind borders. Results vary depending on your border characters.

{
    extend_background_behind_borders = true
}

styles.transparency

Enable a unique experience focused around transparent terminals, avoiding large backgrounds and differentiating selections with foreground colours when possible.

{
    styles = {
        transparency = true
    }
}

before_highlight

{
    before_highlight = function(group, highlight, palette)
        -- Disable all undercurls
        if highlight.undercurl then
            highlight.undercurl = false
        end

        -- Change palette colour
        if highlight.fg == palette.pine then
            highlight.fg = palette.foam
        end

        -- Change palette colour for dark variants
        if vim.o.background == "dark" then
            if highlight.fg == palette.pine then
                highlight.fg = "#3e8fb0"
            end
    end,
}

Breaking changes

Warning

Removed or renamed options should continue to work via internal migrations but backwards compatibility is not tested and may break at any time.

- dim_nc_background = true,
+ dim_inactive_windows = true,

- disable_background = true,
- disable_float_background = true,
+ styles.transparency = true

- disable_italics = true,
+ styles.italic = false,

- groups = {
-   background = "...",
-   comment = "...",
-   punctuation = "...",
- },
+ highlight_groups = {
+   Normal = { bg = "..." },
+   Comment = { fg = "..." },
+   ["@punctuation"] = { fg = "..." },
+ }