Home

Awesome

<div align="center"> <h1> Dark Flat Nvim </h1> Based on the amazing <a href="https://github.com/QuentinWatt/dark-flat-iterm-colors">Dark Flat Iterm2 </a> terminal theme. </div> </br>

demo

<p align = "center"><b>Normal background</b></p> <br />

:rocket: Installation

{"sekke276/dark_flat.nvim"}

Requirement

:gear: Setup

vim.cmd.colorscheme "dark_flat"

Options

OptionDescriptionType
transparentenable transparent backgroundboolean
colorscustom colorstable<string, string>
themescustom highlight groupsfunction(colors): tables
italicsenable italicsboolean

Default

require("dark_flat").setup({
    transparent = false,
    colors = {},
    themes = function(colors)
        return {}
    end,
    italics = true,
})

Customization example

Available colors and themes

  1. colors
  2. themes

Example

require("dark_flat").setup({
    transparent = true,  -- enable transparent window
    colors = {
        lmao = "#ffffff", -- add new color
        pink = "#ec6075", -- replace default color
    },
    themes = function(colors)
        -- change highlight of some groups,
        -- the key and value will be passed respectively to "nvim_set_hl"
        return {
            Normal = { bg = colors.lmao },
            DiffChange = { fg = colors.white:darken(0.3) },
            ErrorMsg = { fg = colors.pink, standout = true },
            ["@lsp.type.keyword"] = { link = "@keyword" }
        }
    end,
    italics = false, -- disable italics
})

:eyes: Inspiration