Skip to content

uncleTen276/dark_flat.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dark Flat Nvim

Based on the amazing Dark Flat Iterm2 terminal theme.

demo

Normal background


🚀 Installation

{"sekke276/dark_flat.nvim"}

Requirement

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

⚙️ 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
})

👀 Inspiration

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages