feat: added kitty color schemes

This commit is contained in:
Folke Lemaitre
2021-04-20 13:39:38 +02:00
parent a425e02942
commit 5785dff767
10 changed files with 515 additions and 320 deletions

View File

@@ -13,6 +13,15 @@ A dark Neovim theme written in Lua ported from the Visual Studio Code [TokyoNigh
## ✨ Features ## ✨ Features
+ supports the latest Neovim 5.0 features like TreeSitter and LSP
+ minimal inactive statusline
+ vim terminal colors
+ darker background for sidebar-like windows
+ color configs for [Kitty](https://sw.kovidgoyal.net/kitty/conf.html?highlight=include)
+ **lualine** theme
### Plugin Support
+ [TreeSitter](https://github.com/nvim-treesitter/nvim-treesitter) + [TreeSitter](https://github.com/nvim-treesitter/nvim-treesitter)
+ [LSP Diagnostics](https://neovim.io/doc/user/lsp.html) + [LSP Diagnostics](https://neovim.io/doc/user/lsp.html)
+ [LSP Saga](https://github.com/glepnir/lspsaga.nvim) + [LSP Saga](https://github.com/glepnir/lspsaga.nvim)
@@ -24,7 +33,7 @@ A dark Neovim theme written in Lua ported from the Visual Studio Code [TokyoNigh
+ [Indent Blankline](https://github.com/lukas-reineke/indent-blankline.nvim) + [Indent Blankline](https://github.com/lukas-reineke/indent-blankline.nvim)
+ [Dashboard](https://github.com/glepnir/dashboard-nvim) + [Dashboard](https://github.com/glepnir/dashboard-nvim)
+ [BufferLine](https://github.com/akinsho/nvim-bufferline.lua) + [BufferLine](https://github.com/akinsho/nvim-bufferline.lua)
+ a TokyNight [Lualine](https://github.com/hoob3rt/lualine.nvim) theme is included + [Lualine](https://github.com/hoob3rt/lualine.nvim)
## 📦 Installation ## 📦 Installation
@@ -81,7 +90,6 @@ The theme comes in two styles, `storm` and a darker variant `night`.
| tokyonight_hide_inactive_statusline | `false` | Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**. | | tokyonight_hide_inactive_statusline | `false` | Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**. |
| tokyonight_sidebars | `{}` | Set a darker background on sidebar-like windows. For example: `["quickfix", "__vista__", "terminal"]` | | tokyonight_sidebars | `{}` | Set a darker background on sidebar-like windows. For example: `["quickfix", "__vista__", "terminal"]` |
```lua ```lua
-- Example config in Lua -- Example config in Lua
vim.g.tokyonight_style = "night" vim.g.tokyonight_style = "night"
@@ -95,3 +103,11 @@ let g:tokyonight_style = "night"
let g:tokyonight_italic_functions = true let g:tokyonight_italic_functions = true
let g:tokyonight_sidebars = [ "quickfix", "__vista__", "terminal" ] let g:tokyonight_sidebars = [ "quickfix", "__vista__", "terminal" ]
``` ```
## 🍭 Extras
Two color configs for **Kitty** can be found at [/extra](extra/). To use them, copy the color config you want to your Kitty condif directory and append the following in yout `kitty.conf`
```kitty
include other.conf
```

9
extra/build Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
cd "$DIR/.."
export LUA_PATH="./lua/?/init.lua;./lua/?.lua"
lua -e 'require"tokyonight.extra"'

View File

@@ -0,0 +1,40 @@
# TokyoNight colors for Kitty
background #1a1b26
foreground #c0caf5
selection_background #33467C
selection_foreground #c0caf5
url_color #73daca
cursor #c0caf5
# Tabs
active_tab_background #7aa2f7
active_tab_foreground #1f2335
inactive_tab_background #292e42
inactive_tab_foreground #545c7e
#tab_bar_background #15161E
# normal
color0 #414868
color1 #f7768e
color2 #9ece6a
color3 #e0af68
color4 #7aa2f7
color5 #bb9af7
color6 #7dcfff
color7 #a9b1d6
# bright
color8 #414868
color9 #f7768e
color10 #9ece6a
color11 #e0af68
color12 #7aa2f7
color13 #bb9af7
color14 #7dcfff
color15 #c0caf5
# extended colors
color16 #ff9e64
color17 #db4b4b

View File

@@ -0,0 +1,40 @@
# TokyoNight colors for Kitty
background #24283b
foreground #c0caf5
selection_background #364A82
selection_foreground #c0caf5
url_color #73daca
cursor #c0caf5
# Tabs
active_tab_background #7aa2f7
active_tab_foreground #1f2335
inactive_tab_background #292e42
inactive_tab_foreground #545c7e
#tab_bar_background #1D202F
# normal
color0 #414868
color1 #f7768e
color2 #9ece6a
color3 #e0af68
color4 #7aa2f7
color5 #bb9af7
color6 #7dcfff
color7 #a9b1d6
# bright
color8 #414868
color9 #f7768e
color10 #9ece6a
color11 #e0af68
color12 #7aa2f7
color13 #bb9af7
color14 #7dcfff
color15 #c0caf5
# extended colors
color16 #ff9e64
color17 #db4b4b

View File

@@ -1,4 +1,4 @@
local colors = require("tokyonight.colors") local colors = require("tokyonight.colors").setup()
local tokyonight = {} local tokyonight = {}

View File

@@ -1,59 +1,66 @@
local util = require("tokyonight.util") local util = require("tokyonight.util")
local config = require("tokyonight.config")
-- Color Palette local M = {}
---@class ColorScheme
local colors = {
none = "NONE",
bg_dark = "#1f2335",
bg = "#24283b",
bg_highlight = "#292e42",
terminal_black = "#414868",
fg = "#c0caf5",
fg_dark = "#a9b1d6",
fg_gutter = "#3b4261",
dark3 = "#545c7e",
comment = "#565f89",
dark5 = "#737aa2",
blue0 = "#3d59a1",
blue = "#7aa2f7",
cyan = "#7dcfff",
blue1 = "#2ac3de",
blue5 = "#89ddff",
blue6 = "#B4F9F8",
magenta = "#bb9af7",
purple = "#9d7cd8",
orange = "#ff9e64",
yellow = "#e0af68",
green = "#9ece6a",
green1 = "#73daca",
teal = "#1abc9c",
red = "#f7768e",
red1 = "#db4b4b",
diff = { change = "#394b70", add = "#164846", delete = "#823c41" },
git = { change = "#6183bb", add = "#449dab", delete = "#914c54" },
}
if config.style == "night" then colors.bg = "#1a1b26" end
util.bg = colors.bg
colors.git.ignore = colors.dark3
colors.black = util.darken(colors.bg, 0.8, "#000000")
colors.border_highlight = colors.blue0
colors.border = colors.black
colors.bg_popup = colors.bg_dark ---@param config Config
colors.bg_sidebar = colors.bg_dark ---@return ColorScheme
colors.bg_statusline = colors.bg_dark function M.setup(config)
colors.bg_float = colors.bg config = config or require("tokyonight.config")
colors.bg_visual = util.darken(colors.blue0, 0.7)
colors.bg_search = colors.blue0
colors.fg_sidebar = colors.fg_dark
colors.error = colors.red1 -- Color Palette
colors.warning = colors.yellow ---@class ColorScheme
colors.info = colors.teal local colors = {
colors.hint = colors.info none = "NONE",
bg_dark = "#1f2335",
bg = "#24283b",
bg_highlight = "#292e42",
terminal_black = "#414868",
fg = "#c0caf5",
fg_dark = "#a9b1d6",
fg_gutter = "#3b4261",
dark3 = "#545c7e",
comment = "#565f89",
dark5 = "#737aa2",
blue0 = "#3d59a1",
blue = "#7aa2f7",
cyan = "#7dcfff",
blue1 = "#2ac3de",
blue5 = "#89ddff",
blue6 = "#B4F9F8",
magenta = "#bb9af7",
purple = "#9d7cd8",
orange = "#ff9e64",
yellow = "#e0af68",
green = "#9ece6a",
green1 = "#73daca",
teal = "#1abc9c",
red = "#f7768e",
red1 = "#db4b4b",
diff = { change = "#394b70", add = "#164846", delete = "#823c41" },
git = { change = "#6183bb", add = "#449dab", delete = "#914c54" },
}
-- util.fg = colors.fg if config.style == "night" then colors.bg = "#1a1b26" end
util.bg = colors.bg
colors.git.ignore = colors.dark3
colors.black = util.darken(colors.bg, 0.8, "#000000")
colors.border_highlight = colors.blue0
colors.border = colors.black
return colors colors.bg_popup = colors.bg_dark
colors.bg_sidebar = colors.bg_dark
colors.bg_statusline = colors.bg_dark
colors.bg_float = colors.bg
colors.bg_visual = util.darken(colors.blue0, 0.7)
colors.bg_search = colors.blue0
colors.fg_sidebar = colors.fg_dark
colors.error = colors.red1
colors.warning = colors.yellow
colors.info = colors.teal
colors.hint = colors.info
return colors
end
return M

16
lua/tokyonight/extra.lua Normal file
View File

@@ -0,0 +1,16 @@
local config = require("tokyonight.config")
local kitty = require("tokyonight.kitty")
local function write(str, fileName)
local file = io.open("extra/" .. fileName, "w")
file:write(str)
file:close()
end
config.style = "storm"
write(kitty.kitty(config), "kitty_tokyonight_storm.conf")
config.style = "night"
write(kitty.kitty(config), "kitty_tokyonight_night.conf")

View File

@@ -1,4 +1,9 @@
local util = require("tokyonight.util") local util = require("tokyonight.util")
local theme = require("tokyonight.theme") local theme = require("tokyonight.theme")
return { colorscheme = function() util.load(theme) end } local M = {}
function M.colorscheme() util.load(theme.setup()) end
return M

54
lua/tokyonight/kitty.lua Normal file
View File

@@ -0,0 +1,54 @@
local util = require("tokyonight.util")
local M = {}
function M.kitty(config)
config = config or require("tokyonight.config")
local colors = require("tokyonight.colors").setup(config)
local kitty = util.template([[
# TokyoNight colors for Kitty
background ${bg}
foreground ${fg}
selection_background ${bg_visual}
selection_foreground ${fg}
url_color ${green1}
cursor ${fg}
# Tabs
active_tab_background ${blue}
active_tab_foreground ${bg_dark}
inactive_tab_background ${bg_highlight}
inactive_tab_foreground ${dark3}
#tab_bar_background ${black}
# normal
color0 ${terminal_black}
color1 ${red}
color2 ${green}
color3 ${yellow}
color4 ${blue}
color5 ${magenta}
color6 ${cyan}
color7 ${fg_dark}
# bright
color8 ${terminal_black}
color9 ${red}
color10 ${green}
color11 ${yellow}
color12 ${blue}
color13 ${magenta}
color14 ${cyan}
color15 ${fg}
# extended colors
color16 ${orange}
color17 ${red1}
]], colors)
return kitty
end
return M

View File

@@ -1,306 +1,314 @@
local util = require("tokyonight.util") local util = require("tokyonight.util")
local config = require("tokyonight.config") local colors = require("tokyonight.colors")
local c = require("tokyonight.colors")
---@class Theme local M = {}
local theme = {}
theme.config = config
theme.colors = c
theme.base = { ---@param config Config
Comment = { fg = c.comment, style = config.commentStyle }, -- any comment ---@return Theme
ColorColumn = { bg = c.bg_visual }, -- used for the columns set with 'colorcolumn' function M.setup(config)
Conceal = { fg = c.fg_gutter }, -- placeholder characters substituted for concealed text (see 'conceallevel') config = config or require("tokyonight.config")
Cursor = { style = "reverse" }, -- character under the cursor
lCursor = { style = "reverse" }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
CursorIM = { style = "reverse" }, -- like Cursor, but used when in IME mode |CursorIM|
CursorColumn = { bg = c.bg_highlight }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
CursorLine = { bg = c.bg_highlight }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
Directory = { fg = c.fg_dark }, -- directory names (and other special names in listings)
DiffAdd = { bg = c.diff.add }, -- diff mode: Added line |diff.txt|
DiffChange = { bg = c.diff.change }, -- diff mode: Changed line |diff.txt|
DiffDelete = { bg = c.diff.delete }, -- diff mode: Deleted line |diff.txt|
DiffText = { bg = c.diff.change }, -- diff mode: Changed text within a changed line |diff.txt|
EndOfBuffer = { fg = c.bg }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
-- TermCursor = { }, -- cursor in a focused terminal
-- TermCursorNC= { }, -- cursor in an unfocused terminal
ErrorMsg = { fg = c.error }, -- error messages on the command line
VertSplit = { fg = c.border }, -- the column separating vertically split windows
Folded = { fg = c.blue, bg = c.fg_gutter }, -- line used for closed folds
FoldColumn = { bg = c.bg, fg = c.comment }, -- 'foldcolumn'
SignColumn = { bg = c.bg, fg = c.fg_gutter }, -- column where |signs| are displayed
SignColumnSB = { bg = c.bg_sidebar, fg = c.fg_gutter }, -- column where |signs| are displayed
Substitute = { bg = c.red }, -- |:substitute| replacement text highlighting
LineNr = { fg = c.fg_gutter }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
CursorLineNr = { fg = c.dark5 }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
MatchParen = { fg = c.orange, style = "bold" }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
ModeMsg = { fg = c.fg_dark, style = "bold" }, -- 'showmode' message (e.g., "-- INSERT -- ")
MsgArea = { fg = c.fg_dark }, -- Area for messages and cmdline
-- MsgSeparator= { }, -- Separator for scrolled messages, `msgsep` flag of 'display'
MoreMsg = { fg = c.blue }, -- |more-prompt|
NonText = { fg = c.dark3 }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
Normal = { fg = c.fg, bg = config.transparent and c.none or c.bg }, -- normal text
NormalNC = { fg = c.fg, bg = config.transparent and c.none or c.bg }, -- normal text in non-current windows
NormalSB = { fg = c.fg_sidebar, bg = c.bg_sidebar }, -- normal text in non-current windows
NormalFloat = { fg = c.fg, bg = c.bg_float }, -- Normal text in floating windows.
FloatBorder = { fg = c.border_highlight },
Pmenu = { bg = c.bg_popup, c.fg }, -- Popup menu: normal item.
PmenuSel = { bg = util.darken(c.fg_gutter, 0.8) }, -- Popup menu: selected item.
PmenuSbar = { bg = util.lighten(c.bg_popup, 0.95) }, -- Popup menu: scrollbar.
PmenuThumb = { bg = c.fg_gutter }, -- Popup menu: Thumb of the scrollbar.
Question = { fg = c.blue }, -- |hit-enter| prompt and yes/no questions
QuickFixLine = { bg = c.bg_visual, style = "bold" }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
Search = { bg = c.bg_search, fg = c.fg }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
IncSearch = { bg = c.bg_search, fg = c.fg }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
SpecialKey = { fg = c.dark3 }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
SpellBad = { fg = c.error, style = "undercurl" }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
SpellCap = { fg = c.warning, style = "undercurl" }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
SpellLocal = { fg = c.info, style = "undercurl" }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
SpellRare = { fg = c.hint, style = "undercurl" }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
StatusLine = { fg = c.fg_sidebar, bg = c.bg_statusline }, -- status line of current window
StatusLineNC = { fg = c.fg_sidebar, bg = c.bg_statusline }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
TabLine = { bg = c.bg_statusline, fg = c.fg_gutter }, -- tab pages line, not active tab page label
TabLineFill = { bg = c.bg_statusline }, -- tab pages line, where there are no labels
TabLineSel = { fg = c.blue, bg = c.bg }, -- tab pages line, active tab page label
Title = { fg = c.blue, style = "bold" }, -- titles for output from ":set all", ":autocmd" etc.
Visual = { bg = c.bg_visual }, -- Visual mode selection
VisualNOS = { bg = c.bg_visual }, -- Visual mode selection when vim is "Not Owning the Selection".
WarningMsg = { fg = c.warning }, -- warning messages
Whitespace = { fg = c.fg_gutter }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
WildMenu = { bg = c.bg_visual }, -- current match in 'wildmenu' completion
-- These groups are not listed as default vim groups, ---@class Theme
-- but they are defacto standard group names for syntax highlighting. local theme = {}
-- commented out groups should chain up to their "preferred" group by theme.config = config
-- default, theme.colors = colors.setup(config)
-- Uncomment and edit if you want more specific syntax highlighting. local c = theme.colors
Constant = { fg = c.orange }, -- (preferred) any constant theme.base = {
String = { fg = c.green }, -- a string constant: "this is a string" Comment = { fg = c.comment, style = config.commentStyle }, -- any comment
Character = { fg = c.green }, -- a character constant: 'c', '\n' ColorColumn = { bg = c.bg_visual }, -- used for the columns set with 'colorcolumn'
-- Number = { }, -- a number constant: 234, 0xff Conceal = { fg = c.fg_gutter }, -- placeholder characters substituted for concealed text (see 'conceallevel')
-- Boolean = { }, -- a boolean constant: TRUE, false Cursor = { style = "reverse" }, -- character under the cursor
-- Float = { }, -- a floating point constant: 2.3e10 lCursor = { style = "reverse" }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
CursorIM = { style = "reverse" }, -- like Cursor, but used when in IME mode |CursorIM|
CursorColumn = { bg = c.bg_highlight }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
CursorLine = { bg = c.bg_highlight }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
Directory = { fg = c.fg_dark }, -- directory names (and other special names in listings)
DiffAdd = { bg = c.diff.add }, -- diff mode: Added line |diff.txt|
DiffChange = { bg = c.diff.change }, -- diff mode: Changed line |diff.txt|
DiffDelete = { bg = c.diff.delete }, -- diff mode: Deleted line |diff.txt|
DiffText = { bg = c.diff.change }, -- diff mode: Changed text within a changed line |diff.txt|
EndOfBuffer = { fg = c.bg }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
-- TermCursor = { }, -- cursor in a focused terminal
-- TermCursorNC= { }, -- cursor in an unfocused terminal
ErrorMsg = { fg = c.error }, -- error messages on the command line
VertSplit = { fg = c.border }, -- the column separating vertically split windows
Folded = { fg = c.blue, bg = c.fg_gutter }, -- line used for closed folds
FoldColumn = { bg = c.bg, fg = c.comment }, -- 'foldcolumn'
SignColumn = { bg = c.bg, fg = c.fg_gutter }, -- column where |signs| are displayed
SignColumnSB = { bg = c.bg_sidebar, fg = c.fg_gutter }, -- column where |signs| are displayed
Substitute = { bg = c.red }, -- |:substitute| replacement text highlighting
LineNr = { fg = c.fg_gutter }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
CursorLineNr = { fg = c.dark5 }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
MatchParen = { fg = c.orange, style = "bold" }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
ModeMsg = { fg = c.fg_dark, style = "bold" }, -- 'showmode' message (e.g., "-- INSERT -- ")
MsgArea = { fg = c.fg_dark }, -- Area for messages and cmdline
-- MsgSeparator= { }, -- Separator for scrolled messages, `msgsep` flag of 'display'
MoreMsg = { fg = c.blue }, -- |more-prompt|
NonText = { fg = c.dark3 }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
Normal = { fg = c.fg, bg = config.transparent and c.none or c.bg }, -- normal text
NormalNC = { fg = c.fg, bg = config.transparent and c.none or c.bg }, -- normal text in non-current windows
NormalSB = { fg = c.fg_sidebar, bg = c.bg_sidebar }, -- normal text in non-current windows
NormalFloat = { fg = c.fg, bg = c.bg_float }, -- Normal text in floating windows.
FloatBorder = { fg = c.border_highlight },
Pmenu = { bg = c.bg_popup, c.fg }, -- Popup menu: normal item.
PmenuSel = { bg = util.darken(c.fg_gutter, 0.8) }, -- Popup menu: selected item.
PmenuSbar = { bg = util.lighten(c.bg_popup, 0.95) }, -- Popup menu: scrollbar.
PmenuThumb = { bg = c.fg_gutter }, -- Popup menu: Thumb of the scrollbar.
Question = { fg = c.blue }, -- |hit-enter| prompt and yes/no questions
QuickFixLine = { bg = c.bg_visual, style = "bold" }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
Search = { bg = c.bg_search, fg = c.fg }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
IncSearch = { bg = c.bg_search, fg = c.fg }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
SpecialKey = { fg = c.dark3 }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
SpellBad = { fg = c.error, style = "undercurl" }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
SpellCap = { fg = c.warning, style = "undercurl" }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
SpellLocal = { fg = c.info, style = "undercurl" }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
SpellRare = { fg = c.hint, style = "undercurl" }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
StatusLine = { fg = c.fg_sidebar, bg = c.bg_statusline }, -- status line of current window
StatusLineNC = { fg = c.fg_sidebar, bg = c.bg_statusline }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
TabLine = { bg = c.bg_statusline, fg = c.fg_gutter }, -- tab pages line, not active tab page label
TabLineFill = { bg = c.bg_statusline }, -- tab pages line, where there are no labels
TabLineSel = { fg = c.blue, bg = c.bg }, -- tab pages line, active tab page label
Title = { fg = c.blue, style = "bold" }, -- titles for output from ":set all", ":autocmd" etc.
Visual = { bg = c.bg_visual }, -- Visual mode selection
VisualNOS = { bg = c.bg_visual }, -- Visual mode selection when vim is "Not Owning the Selection".
WarningMsg = { fg = c.warning }, -- warning messages
Whitespace = { fg = c.fg_gutter }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
WildMenu = { bg = c.bg_visual }, -- current match in 'wildmenu' completion
Identifier = { fg = c.magenta }, -- (preferred) any variable name -- These groups are not listed as default vim groups,
Function = { fg = c.blue, style = config.functionStyle }, -- function name (also: methods for classes) -- but they are defacto standard group names for syntax highlighting.
-- commented out groups should chain up to their "preferred" group by
-- default,
-- Uncomment and edit if you want more specific syntax highlighting.
Statement = { fg = c.magenta }, -- (preferred) any statement Constant = { fg = c.orange }, -- (preferred) any constant
-- Conditional = { }, -- if, then, else, endif, switch, etc. String = { fg = c.green }, -- a string constant: "this is a string"
-- Repeat = { }, -- for, do, while, etc. Character = { fg = c.green }, -- a character constant: 'c', '\n'
-- Label = { }, -- case, default, etc. -- Number = { }, -- a number constant: 234, 0xff
Operator = { fg = c.blue5 }, -- "sizeof", "+", "*", etc. -- Boolean = { }, -- a boolean constant: TRUE, false
Keyword = { fg = c.cyan, style = config.keywordStyle }, -- any other keyword -- Float = { }, -- a floating point constant: 2.3e10
-- Exception = { }, -- try, catch, throw
PreProc = { fg = c.cyan }, -- (preferred) generic Preprocessor Identifier = { fg = c.magenta }, -- (preferred) any variable name
-- Include = { }, -- preprocessor #include Function = { fg = c.blue, style = config.functionStyle }, -- function name (also: methods for classes)
-- Define = { }, -- preprocessor #define
-- Macro = { }, -- same as Define
-- PreCondit = { }, -- preprocessor #if, #else, #endif, etc.
Type = { fg = c.blue1 }, -- (preferred) int, long, char, etc. Statement = { fg = c.magenta }, -- (preferred) any statement
-- StorageClass = { }, -- static, register, volatile, etc. -- Conditional = { }, -- if, then, else, endif, switch, etc.
-- Structure = { }, -- struct, union, enum, etc. -- Repeat = { }, -- for, do, while, etc.
-- Typedef = { }, -- A typedef -- Label = { }, -- case, default, etc.
Operator = { fg = c.blue5 }, -- "sizeof", "+", "*", etc.
Keyword = { fg = c.cyan, style = config.keywordStyle }, -- any other keyword
-- Exception = { }, -- try, catch, throw
Special = { fg = c.blue1 }, -- (preferred) any special symbol PreProc = { fg = c.cyan }, -- (preferred) generic Preprocessor
-- SpecialChar = { }, -- special character in a constant -- Include = { }, -- preprocessor #include
-- Tag = { }, -- you can use CTRL-] on this -- Define = { }, -- preprocessor #define
-- Delimiter = { }, -- character that needs attention -- Macro = { }, -- same as Define
-- SpecialComment= { }, -- special things inside a comment -- PreCondit = { }, -- preprocessor #if, #else, #endif, etc.
-- Debug = { }, -- debugging statements
Underlined = { style = "underline" }, -- (preferred) text that stands out, HTML links Type = { fg = c.blue1 }, -- (preferred) int, long, char, etc.
Bold = { style = "bold" }, -- StorageClass = { }, -- static, register, volatile, etc.
Italic = { style = "italic" }, -- Structure = { }, -- struct, union, enum, etc.
-- Typedef = { }, -- A typedef
-- ("Ignore", below, may be invisible...) Special = { fg = c.blue1 }, -- (preferred) any special symbol
-- Ignore = { }, -- (preferred) left blank, hidden |hl-Ignore| -- SpecialChar = { }, -- special character in a constant
-- Tag = { }, -- you can use CTRL-] on this
-- Delimiter = { }, -- character that needs attention
-- SpecialComment= { }, -- special things inside a comment
-- Debug = { }, -- debugging statements
Error = { fg = c.error }, -- (preferred) any erroneous construct Underlined = { style = "underline" }, -- (preferred) text that stands out, HTML links
Todo = { bg = c.yellow, fg = c.bg }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX Bold = { style = "bold" },
Italic = { style = "italic" },
qfLineNr = { fg = c.dark5 }, -- ("Ignore", below, may be invisible...)
qfFileName = { fg = c.blue }, -- Ignore = { }, -- (preferred) left blank, hidden |hl-Ignore|
htmlH1 = { fg = c.magenta, style = "bold" }, Error = { fg = c.error }, -- (preferred) any erroneous construct
markdownH1 = { fg = c.magenta, style = "bold" }, Todo = { bg = c.yellow, fg = c.bg }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX
markdownH1Delimiter = { fg = c.magenta },
htmlH2 = { fg = c.blue, style = "bold" },
markdownH2 = { fg = c.blue, style = "bold" },
markdownH2Delimiter = { fg = c.blue },
-- These groups are for the native LSP client. Some other LSP clients may qfLineNr = { fg = c.dark5 },
-- use these groups, or use their own. Consult your LSP client's qfFileName = { fg = c.blue },
-- documentation.
}
theme.plugins = { htmlH1 = { fg = c.magenta, style = "bold" },
LspReferenceText = { bg = c.fg_gutter }, -- used for highlighting "text" references markdownH1 = { fg = c.magenta, style = "bold" },
LspReferenceRead = { bg = c.fg_gutter }, -- used for highlighting "read" references markdownH1Delimiter = { fg = c.magenta },
LspReferenceWrite = { bg = c.fg_gutter }, -- used for highlighting "write" references htmlH2 = { fg = c.blue, style = "bold" },
markdownH2 = { fg = c.blue, style = "bold" },
markdownH2Delimiter = { fg = c.blue },
LspDiagnosticsDefaultError = { fg = c.error }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) -- These groups are for the native LSP client. Some other LSP clients may
LspDiagnosticsDefaultWarning = { fg = c.warning }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) -- use these groups, or use their own. Consult your LSP client's
LspDiagnosticsDefaultInformation = { fg = c.info }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) -- documentation.
LspDiagnosticsDefaultHint = { fg = c.hint }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) }
LspDiagnosticsVirtualTextError = { bg = util.darken(c.error, 0.1), fg = c.error }, -- Used for "Error" diagnostic virtual text theme.plugins = {
LspDiagnosticsVirtualTextWarning = { bg = util.darken(c.warning, 0.1), fg = c.warning }, -- Used for "Warning" diagnostic virtual text LspReferenceText = { bg = c.fg_gutter }, -- used for highlighting "text" references
LspDiagnosticsVirtualTextInformation = { bg = util.darken(c.info, 0.1), fg = c.info }, -- Used for "Information" diagnostic virtual text LspReferenceRead = { bg = c.fg_gutter }, -- used for highlighting "read" references
LspDiagnosticsVirtualTextHint = { bg = util.darken(c.hint, 0.1), fg = c.hint }, -- Used for "Hint" diagnostic virtual text LspReferenceWrite = { bg = c.fg_gutter }, -- used for highlighting "write" references
LspDiagnosticsUnderlineError = { style = "undercurl", sp = c.error }, -- Used to underline "Error" diagnostics LspDiagnosticsDefaultError = { fg = c.error }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsUnderlineWarning = { style = "undercurl", sp = c.warning }, -- Used to underline "Warning" diagnostics LspDiagnosticsDefaultWarning = { fg = c.warning }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsUnderlineInformation = { style = "undercurl", sp = c.info }, -- Used to underline "Information" diagnostics LspDiagnosticsDefaultInformation = { fg = c.info }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsUnderlineHint = { style = "undercurl", sp = c.hint }, -- Used to underline "Hint" diagnostics LspDiagnosticsDefaultHint = { fg = c.hint }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
-- LspDiagnosticsFloatingError = { }, -- Used to color "Error" diagnostic messages in diagnostics float LspDiagnosticsVirtualTextError = { bg = util.darken(c.error, 0.1), fg = c.error }, -- Used for "Error" diagnostic virtual text
-- LspDiagnosticsFloatingWarning = { }, -- Used to color "Warning" diagnostic messages in diagnostics float LspDiagnosticsVirtualTextWarning = { bg = util.darken(c.warning, 0.1), fg = c.warning }, -- Used for "Warning" diagnostic virtual text
-- LspDiagnosticsFloatingInformation = { }, -- Used to color "Information" diagnostic messages in diagnostics float LspDiagnosticsVirtualTextInformation = { bg = util.darken(c.info, 0.1), fg = c.info }, -- Used for "Information" diagnostic virtual text
-- LspDiagnosticsFloatingHint = { }, -- Used to color "Hint" diagnostic messages in diagnostics float LspDiagnosticsVirtualTextHint = { bg = util.darken(c.hint, 0.1), fg = c.hint }, -- Used for "Hint" diagnostic virtual text
-- LspDiagnosticsSignError = { }, -- Used for "Error" signs in sign column LspDiagnosticsUnderlineError = { style = "undercurl", sp = c.error }, -- Used to underline "Error" diagnostics
-- LspDiagnosticsSignWarning = { }, -- Used for "Warning" signs in sign column LspDiagnosticsUnderlineWarning = { style = "undercurl", sp = c.warning }, -- Used to underline "Warning" diagnostics
-- LspDiagnosticsSignInformation = { }, -- Used for "Information" signs in sign column LspDiagnosticsUnderlineInformation = { style = "undercurl", sp = c.info }, -- Used to underline "Information" diagnostics
-- LspDiagnosticsSignHint = { }, -- Used for "Hint" signs in sign column LspDiagnosticsUnderlineHint = { style = "undercurl", sp = c.hint }, -- Used to underline "Hint" diagnostics
-- These groups are for the neovim tree-sitter highlights. -- LspDiagnosticsFloatingError = { }, -- Used to color "Error" diagnostic messages in diagnostics float
-- As of writing, tree-sitter support is a WIP, group names may change. -- LspDiagnosticsFloatingWarning = { }, -- Used to color "Warning" diagnostic messages in diagnostics float
-- By default, most of these groups link to an appropriate Vim group, -- LspDiagnosticsFloatingInformation = { }, -- Used to color "Information" diagnostic messages in diagnostics float
-- TSError -> Error for example, so you do not have to define these unless -- LspDiagnosticsFloatingHint = { }, -- Used to color "Hint" diagnostic messages in diagnostics float
-- you explicitly want to support Treesitter's improved syntax awareness.
-- TSAnnotation = { }; -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information. -- LspDiagnosticsSignError = { }, -- Used for "Error" signs in sign column
-- TSAttribute = { }; -- (unstable) TODO: docs -- LspDiagnosticsSignWarning = { }, -- Used for "Warning" signs in sign column
-- TSBoolean = { }; -- For booleans. -- LspDiagnosticsSignInformation = { }, -- Used for "Information" signs in sign column
-- TSCharacter = { }; -- For characters. -- LspDiagnosticsSignHint = { }, -- Used for "Hint" signs in sign column
-- TSComment = { }; -- For comment blocks.
TSConstructor = { fg = c.magenta }, -- For constructor calls and definitions: `= { }` in Lua, and Java constructors.
-- TSConditional = { }; -- For keywords related to conditionnals.
-- TSConstant = { }; -- For constants
-- TSConstBuiltin = { }; -- For constant that are built in the language: `nil` in Lua.
-- TSConstMacro = { }; -- For constants that are defined by macros: `NULL` in C.
-- TSError = { }; -- For syntax/parser errors.
-- TSException = { }; -- For exception related keywords.
TSField = { fg = c.green1 }, -- For fields.
-- TSFloat = { }; -- For floats.
-- TSFunction = { }; -- For function (calls and definitions).
-- TSFuncBuiltin = { }; -- For builtin functions: `table.insert` in Lua.
-- TSFuncMacro = { }; -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust.
-- TSInclude = { }; -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua.
TSKeyword = { fg = c.purple, style = config.keywordStyle }, -- For keywords that don't fall in previous categories.
-- TSKeywordFunction = { }; -- For keywords used to define a fuction.
TSLabel = { fg = c.blue }, -- For labels: `label:` in C and `:label:` in Lua.
-- TSMethod = { }; -- For method calls and definitions.
-- TSNamespace = { }; -- For identifiers referring to modules and namespaces.
-- TSNone = { }; -- TODO: docs
-- TSNumber = { }; -- For all numbers
TSOperator = { fg = c.blue5 }, -- For any operator: `+`, but also `->` and `*` in C.
TSParameter = { fg = c.yellow }, -- For parameters of a function.
-- TSParameterReference= { }; -- For references to parameters of a function.
TSProperty = { fg = c.green1 }, -- Same as `TSField`.
TSPunctDelimiter = { fg = c.blue5 }, -- For delimiters ie: `.`
TSPunctBracket = { fg = c.fg_dark }, -- For brackets and parens.
TSPunctSpecial = { fg = c.blue5 }, -- For special punctutation that does not fall in the catagories before.
-- TSRepeat = { }; -- For keywords related to loops.
-- TSString = { }; -- For strings.
TSStringRegex = { fg = c.blue6 }, -- For regexes.
TSStringEscape = { fg = c.magenta }, -- For escape characters within a string.
-- TSSymbol = { }; -- For identifiers referring to symbols or atoms.
-- TSType = { }; -- For types.
-- TSTypeBuiltin = { }; -- For builtin types.
-- TSVariable = { }; -- Any variable name that does not have another highlight.
TSVariableBuiltin = { fg = c.red }, -- Variable names that are defined by the languages, like `this` or `self`.
-- TSTag = { }; -- Tags like html tag names. -- These groups are for the neovim tree-sitter highlights.
-- TSTagDelimiter = { }; -- Tag delimiter like `<` `>` `/` -- As of writing, tree-sitter support is a WIP, group names may change.
-- TSText = { }; -- For strings considered text in a markup language. -- By default, most of these groups link to an appropriate Vim group,
TSTextReference = { fg = c.red }, -- FIXME -- TSError -> Error for example, so you do not have to define these unless
-- TSEmphasis = { }; -- For text to be represented with emphasis. -- you explicitly want to support Treesitter's improved syntax awareness.
-- TSUnderline = { }; -- For text to be represented with an underline.
-- TSStrike = { }; -- For strikethrough text.
-- TSTitle = { }; -- Text that is part of a title.
-- TSLiteral = { }; -- Literal text.
-- TSURI = { }; -- Any URI like a link or email.
-- GitGutter -- TSAnnotation = { }; -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information.
GitGutterAdd = { fg = c.diff.add }, -- diff mode: Added line |diff.txt| -- TSAttribute = { }; -- (unstable) TODO: docs
GitGutterChange = { fg = c.diff.change }, -- diff mode: Changed line |diff.txt| -- TSBoolean = { }; -- For booleans.
GitGutterDelete = { fg = c.diff.delete }, -- diff mode: Deleted line |diff.txt| -- TSCharacter = { }; -- For characters.
-- TSComment = { }; -- For comment blocks.
TSConstructor = { fg = c.magenta }, -- For constructor calls and definitions: `= { }` in Lua, and Java constructors.
-- TSConditional = { }; -- For keywords related to conditionnals.
-- TSConstant = { }; -- For constants
-- TSConstBuiltin = { }; -- For constant that are built in the language: `nil` in Lua.
-- TSConstMacro = { }; -- For constants that are defined by macros: `NULL` in C.
-- TSError = { }; -- For syntax/parser errors.
-- TSException = { }; -- For exception related keywords.
TSField = { fg = c.green1 }, -- For fields.
-- TSFloat = { }; -- For floats.
-- TSFunction = { }; -- For function (calls and definitions).
-- TSFuncBuiltin = { }; -- For builtin functions: `table.insert` in Lua.
-- TSFuncMacro = { }; -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust.
-- TSInclude = { }; -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua.
TSKeyword = { fg = c.purple, style = config.keywordStyle }, -- For keywords that don't fall in previous categories.
-- TSKeywordFunction = { }; -- For keywords used to define a fuction.
TSLabel = { fg = c.blue }, -- For labels: `label:` in C and `:label:` in Lua.
-- TSMethod = { }; -- For method calls and definitions.
-- TSNamespace = { }; -- For identifiers referring to modules and namespaces.
-- TSNone = { }; -- TODO: docs
-- TSNumber = { }; -- For all numbers
TSOperator = { fg = c.blue5 }, -- For any operator: `+`, but also `->` and `*` in C.
TSParameter = { fg = c.yellow }, -- For parameters of a function.
-- TSParameterReference= { }; -- For references to parameters of a function.
TSProperty = { fg = c.green1 }, -- Same as `TSField`.
TSPunctDelimiter = { fg = c.blue5 }, -- For delimiters ie: `.`
TSPunctBracket = { fg = c.fg_dark }, -- For brackets and parens.
TSPunctSpecial = { fg = c.blue5 }, -- For special punctutation that does not fall in the catagories before.
-- TSRepeat = { }; -- For keywords related to loops.
-- TSString = { }; -- For strings.
TSStringRegex = { fg = c.blue6 }, -- For regexes.
TSStringEscape = { fg = c.magenta }, -- For escape characters within a string.
-- TSSymbol = { }; -- For identifiers referring to symbols or atoms.
-- TSType = { }; -- For types.
-- TSTypeBuiltin = { }; -- For builtin types.
-- TSVariable = { }; -- Any variable name that does not have another highlight.
TSVariableBuiltin = { fg = c.red }, -- Variable names that are defined by the languages, like `this` or `self`.
-- GitSigns -- TSTag = { }; -- Tags like html tag names.
GitSignsAdd = { fg = c.diff.add }, -- diff mode: Added line |diff.txt| -- TSTagDelimiter = { }; -- Tag delimiter like `<` `>` `/`
GitSignsChange = { fg = c.diff.change }, -- diff mode: Changed line |diff.txt| -- TSText = { }; -- For strings considered text in a markup language.
GitSignsDelete = { fg = c.diff.delete }, -- diff mode: Deleted line |diff.txt| TSTextReference = { fg = c.red }, -- FIXME
-- TSEmphasis = { }; -- For text to be represented with emphasis.
-- TSUnderline = { }; -- For text to be represented with an underline.
-- TSStrike = { }; -- For strikethrough text.
-- TSTitle = { }; -- Text that is part of a title.
-- TSLiteral = { }; -- Literal text.
-- TSURI = { }; -- Any URI like a link or email.
-- Telescope -- GitGutter
TelescopeBorder = { fg = c.border_highlight }, GitGutterAdd = { fg = c.diff.add }, -- diff mode: Added line |diff.txt|
GitGutterChange = { fg = c.diff.change }, -- diff mode: Changed line |diff.txt|
GitGutterDelete = { fg = c.diff.delete }, -- diff mode: Deleted line |diff.txt|
-- NvimTree -- GitSigns
NvimTreeNormal = { fg = c.fg_sidebar, bg = c.bg_sidebar }, GitSignsAdd = { fg = c.diff.add }, -- diff mode: Added line |diff.txt|
NvimTreeRootFolder = { fg = c.blue, style = "bold" }, GitSignsChange = { fg = c.diff.change }, -- diff mode: Changed line |diff.txt|
NvimTreeGitDirty = { fg = c.git.change }, GitSignsDelete = { fg = c.diff.delete }, -- diff mode: Deleted line |diff.txt|
NvimTreeGitNew = { fg = c.git.add },
NvimTreeSpecialFile = { fg = c.purple },
LspDiagnosticsError = { fg = c.error },
LspDiagnosticsWarning = { fg = c.warning },
LspDiagnosticsInformation = { fg = c.info },
LspDiagnosticsHint = { fg = c.hint },
-- NvimTreeFolderName= { fg = c.fg_float },
-- Dashboard -- Telescope
DashboardShortCut = { fg = c.cyan }, TelescopeBorder = { fg = c.border_highlight },
DashboardHeader = { fg = c.blue },
DashboardCenter = { fg = c.magenta },
DashboardFooter = { fg = c.yellow, style = "italic" },
-- WhichKey -- NvimTree
WhichKey = { fg = c.cyan }, NvimTreeNormal = { fg = c.fg_sidebar, bg = c.bg_sidebar },
WhichKeyGroup = { fg = c.blue }, NvimTreeRootFolder = { fg = c.blue, style = "bold" },
WhichKeyDesc = { fg = c.magenta }, NvimTreeGitDirty = { fg = c.git.change },
WhichKeySeperator = { fg = c.comment }, NvimTreeGitNew = { fg = c.git.add },
WhichKeyFloating = { bg = c.bg_sidebar }, NvimTreeSpecialFile = { fg = c.purple },
LspDiagnosticsError = { fg = c.error },
LspDiagnosticsWarning = { fg = c.warning },
LspDiagnosticsInformation = { fg = c.info },
LspDiagnosticsHint = { fg = c.hint },
-- NvimTreeFolderName= { fg = c.fg_float },
-- LspSaga -- Dashboard
DiagnosticError = { fg = c.error }, DashboardShortCut = { fg = c.cyan },
DiagnosticWarning = { fg = c.warning }, DashboardHeader = { fg = c.blue },
DiagnosticInformation = { fg = c.info }, DashboardCenter = { fg = c.magenta },
DiagnosticHint = { fg = c.hint }, DashboardFooter = { fg = c.yellow, style = "italic" },
-- NeoVim -- WhichKey
healthError = { fg = c.error }, WhichKey = { fg = c.cyan },
healthSuccess = { fg = c.green1 }, WhichKeyGroup = { fg = c.blue },
healthWarning = { fg = c.warning }, WhichKeyDesc = { fg = c.magenta },
WhichKeySeperator = { fg = c.comment },
WhichKeyFloating = { bg = c.bg_sidebar },
-- BufferLine -- LspSaga
BufferLineIndicatorSelected = { fg = c.git.change }, DiagnosticError = { fg = c.error },
BufferLineFill = { bg = c.black }, DiagnosticWarning = { fg = c.warning },
DiagnosticInformation = { fg = c.info },
DiagnosticHint = { fg = c.hint },
} -- NeoVim
healthError = { fg = c.error },
healthSuccess = { fg = c.green1 },
healthWarning = { fg = c.warning },
-- LuaLine -- BufferLine
for _, section in ipairs({ "b", "c" }) do BufferLineIndicatorSelected = { fg = c.git.change },
local bg = c.bg_sidebar BufferLineFill = { bg = c.black },
if section == "b" then bg = c.fg_gutter end
theme.plugins["lualine_" .. section .. "_diagnostics_error_normal"] = { fg = c.error, bg = bg }
theme.plugins["lualine_" .. section .. "_diagnostics_warn_normal"] = { fg = c.warning, bg = bg }
theme.plugins["lualine_" .. section .. "_diagnostics_info_normal"] = { fg = c.info, bg = bg }
end
if config.hideInactiveStatusline then }
local inactive = { style = "underline", bg = c.bg, fg = c.bg, sp = c.border }
-- StatusLineNC
theme.base.StatusLineNC = inactive
-- LuaLine -- LuaLine
for _, section in ipairs({ "a", "b", "c" }) do for _, section in ipairs({ "b", "c" }) do
theme.plugins["lualine_" .. section .. "_inactive"] = inactive local bg = c.bg_sidebar
if section == "b" then bg = c.fg_gutter end
theme.plugins["lualine_" .. section .. "_diagnostics_error_normal"] = { fg = c.error, bg = bg }
theme.plugins["lualine_" .. section .. "_diagnostics_warn_normal"] = { fg = c.warning, bg = bg }
theme.plugins["lualine_" .. section .. "_diagnostics_info_normal"] = { fg = c.info, bg = bg }
end end
if config.hideInactiveStatusline then
local inactive = { style = "underline", bg = c.bg, fg = c.bg, sp = c.border }
-- StatusLineNC
theme.base.StatusLineNC = inactive
-- LuaLine
for _, section in ipairs({ "a", "b", "c" }) do
theme.plugins["lualine_" .. section .. "_inactive"] = inactive
end
end
return theme
end end
return theme return M
-- vi:nowrap