README.md
June 23, 2023 ยท View on GitHub
Dark Flat Nvim
Based on the amazing Dark Flat Iterm2 terminal theme.Normal background
: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
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
})