sekke276/dark_flat.nvim

github github
colorschemetreesitter-colorschemes
stars 35
issues 2
subscribers 1
forks 1
CREATED

2023-06-23

UPDATED

9 months ago


demo

:rocket: Installation

{"sekke276/dark_flat.nvim"}

Requirement

  • Neovim >= 0.9.1
  • nvim-treesitter for better syntax highlighting (optional) 😇

:gear: Setup

vim.cmd.colorscheme "dark_flat"

Options

Option Description Type
transparent enable transparent background boolean
colors custom colors table<string, string>
themes custom highlight groups function(colors): tables
italics enable italics boolean

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