Modules/Neovim: Use updated color module for theme
This commit is contained in:
@ -1026,39 +1026,39 @@ in {
|
|||||||
bubbles = ''
|
bubbles = ''
|
||||||
{
|
{
|
||||||
normal = {
|
normal = {
|
||||||
a = { fg = "#${color.hex.base}", bg = "#${color.hex.lavender}", gui = "bold" },
|
a = { fg = "#${color.hex.bg}", bg = "#${color.hex.accent}", gui = "bold" },
|
||||||
b = { fg = "#${color.hex.text}", bg = "#${color.hex.crust}" },
|
b = { fg = "#${color.hex.text}", bg = "#${color.hex.crust}" },
|
||||||
c = { fg = "#${color.hex.text}", bg = "NONE" },
|
c = { fg = "#${color.hex.text}", bg = "NONE" },
|
||||||
},
|
},
|
||||||
|
|
||||||
insert = {
|
insert = {
|
||||||
a = { fg = "#${color.hex.base}", bg = "#${color.hex.green}", gui = "bold" },
|
a = { fg = "#${color.hex.bg}", bg = "#${color.hex.green}", gui = "bold" },
|
||||||
b = { fg = "#${color.hex.green}", bg = "#${color.hex.crust}" },
|
b = { fg = "#${color.hex.green}", bg = "#${color.hex.crust}" },
|
||||||
},
|
},
|
||||||
|
|
||||||
visual = {
|
visual = {
|
||||||
a = { fg = "#${color.hex.base}", bg = "#${color.hex.mauve}", gui = "bold" },
|
a = { fg = "#${color.hex.bg}", bg = "#${color.hex.blue}", gui = "bold" },
|
||||||
b = { fg = "#${color.hex.mauve}", bg = "#${color.hex.crust}" },
|
b = { fg = "#${color.hex.blue}", bg = "#${color.hex.crust}" },
|
||||||
},
|
},
|
||||||
|
|
||||||
replace = {
|
replace = {
|
||||||
a = { fg = "#${color.hex.base}", bg = "#${color.hex.red}", gui = "bold" },
|
a = { fg = "#${color.hex.bg}", bg = "#${color.hex.red}", gui = "bold" },
|
||||||
b = { fg = "#${color.hex.red}", bg = "#${color.hex.crust}" },
|
b = { fg = "#${color.hex.red}", bg = "#${color.hex.crust}" },
|
||||||
},
|
},
|
||||||
|
|
||||||
-- terminal = {
|
-- terminal = {
|
||||||
-- a = { fg = "#${color.hex.base}", bg = "#${color.hex.green}", gui = "bold" },
|
-- a = { fg = "#${color.hex.bg}", bg = "#${color.hex.green}", gui = "bold" },
|
||||||
-- b = { fg = "#${color.hex.green}", bg = "#${color.hex.crust}" },
|
-- b = { fg = "#${color.hex.green}", bg = "#${color.hex.crust}" },
|
||||||
-- },
|
-- },
|
||||||
|
|
||||||
command = {
|
command = {
|
||||||
a = { fg = "#${color.hex.base}", bg = "#${color.hex.peach}", gui = "bold" },
|
a = { fg = "#${color.hex.bg}", bg = "#${color.hex.peach}", gui = "bold" },
|
||||||
b = { fg = "#${color.hex.peach}", bg = "#${color.hex.crust}" },
|
b = { fg = "#${color.hex.peach}", bg = "#${color.hex.crust}" },
|
||||||
},
|
},
|
||||||
|
|
||||||
inactive = {
|
inactive = {
|
||||||
a = { fg = "#${color.hex.text}", bg = "#${color.hex.base}" },
|
a = { fg = "#${color.hex.text}", bg = "#${color.hex.bg}" },
|
||||||
b = { fg = "#${color.hex.text}", bg = "#${color.hex.base}" },
|
b = { fg = "#${color.hex.text}", bg = "#${color.hex.bg}" },
|
||||||
c = { fg = "#${color.hex.text}", bg = "NONE" },
|
c = { fg = "#${color.hex.text}", bg = "NONE" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -1598,41 +1598,41 @@ in {
|
|||||||
opts = {
|
opts = {
|
||||||
line.__raw = ''
|
line.__raw = ''
|
||||||
function(line)
|
function(line)
|
||||||
local base = { fg = "#${color.hex.base}", bg = "#${color.hex.base}" }
|
local bg = { fg = "#${color.hex.bg}", bg = "#${color.hex.bg}" }
|
||||||
local crust = { fg = "#${color.hex.crust}", bg = "#${color.hex.crust}" }
|
local crust = { fg = "#${color.hex.crust}", bg = "#${color.hex.crust}" }
|
||||||
local text = { fg = "#${color.hex.text}", bg = "#${color.hex.crust}" }
|
local text = { fg = "#${color.hex.text}", bg = "#${color.hex.crust}" }
|
||||||
local lavender = { fg = "#${color.hex.lavender}", bg = "#${color.hex.lavender}" }
|
local accent = { fg = "#${color.hex.accent}", bg = "#${color.hex.accent}" }
|
||||||
|
|
||||||
local numtabs = vim.call("tabpagenr", "$")
|
local numtabs = vim.call("tabpagenr", "$")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
-- Head
|
-- Head
|
||||||
{
|
{
|
||||||
{ " NEOVIM ", hl = { fg = "#${color.hex.base}", bg = "#${color.hex.lavender}", style = "bold" } },
|
{ " NEOVIM ", hl = { fg = "#${color.hex.bg}", bg = "#${color.hex.accent}", style = "bold" } },
|
||||||
|
|
||||||
-- The separator gets a foreground and background fill (each have fg + bg).
|
-- The separator gets a foreground and background fill (each have fg + bg).
|
||||||
-- line.sep("", lavender, lavender),
|
-- line.sep("", accent, lavender),
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Tabs
|
-- Tabs
|
||||||
line.tabs().foreach(function(tab)
|
line.tabs().foreach(function(tab)
|
||||||
-- Switch out the start separator instead of the ending one because the last separator is different
|
-- Switch out the start separator instead of the ending one because the last separator is different
|
||||||
local hl = tab.is_current() and { fg = "#${color.hex.lavender}", bg = "#${color.hex.crust}", style = "bold" } or text
|
local hl = tab.is_current() and { fg = "#${color.hex.accent}", bg = "#${color.hex.crust}", style = "bold" } or text
|
||||||
local sep_start = tab.number() == 1 and "" or ""
|
local sep_start = tab.number() == 1 and "" or ""
|
||||||
local sep_end = tab.number() == numtabs and "" or ""
|
local sep_end = tab.number() == numtabs and "" or ""
|
||||||
|
|
||||||
return {
|
return {
|
||||||
line.sep(sep_start, lavender, crust),
|
line.sep(sep_start, accent, crust),
|
||||||
tab.number(),
|
tab.number(),
|
||||||
tab.name(),
|
tab.name(),
|
||||||
line.sep(sep_end, crust, base),
|
line.sep(sep_end, crust, bg),
|
||||||
hl = hl,
|
hl = hl,
|
||||||
margin = " ",
|
margin = " ",
|
||||||
}
|
}
|
||||||
end),
|
end),
|
||||||
|
|
||||||
-- Background
|
-- Background
|
||||||
hl = base,
|
hl = bg,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
Reference in New Issue
Block a user