mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
add custom visual color #cbf0d3
This commit is contained in:
parent
ddf018fd53
commit
8e403e22a1
2 changed files with 41 additions and 6 deletions
|
|
@ -9,8 +9,8 @@ return {
|
||||||
-- `auto` will automatically set style based on background set with vim.o.background
|
-- `auto` will automatically set style based on background set with vim.o.background
|
||||||
style = "auto",
|
style = "auto",
|
||||||
variant = "default", -- Theme comes in four variants `default`, `tinted`, `deuteranopia`, and `tritanopia`
|
variant = "default", -- Theme comes in four variants `default`, `tinted`, `deuteranopia`, and `tritanopia`
|
||||||
transparent = true, -- Transparent background (as supported by the terminal)
|
transparent = false, -- Transparent background (as supported by the terminal)
|
||||||
dim_inactive = false, -- "non-current" windows are dimmed
|
dim_inactive = true, -- "non-current" windows are dimmed
|
||||||
styles = {
|
styles = {
|
||||||
-- Style to be applied to different syntax groups
|
-- Style to be applied to different syntax groups
|
||||||
-- Value is any valid attr-list value for `:help nvim_set_hl`
|
-- Value is any valid attr-list value for `:help nvim_set_hl`
|
||||||
|
|
@ -25,7 +25,7 @@ return {
|
||||||
---@param colors ColorScheme
|
---@param colors ColorScheme
|
||||||
on_colors = function(colors)
|
on_colors = function(colors)
|
||||||
colors.bg_active = "#ffffff" -- changed from #e0e0e0, we also like #f8f9fa
|
colors.bg_active = "#ffffff" -- changed from #e0e0e0, we also like #f8f9fa
|
||||||
colors.visual = "#72f64a"
|
colors.visual = "#cbf0d3"
|
||||||
end,
|
end,
|
||||||
|
|
||||||
--- You can override specific highlights to use other groups or a hex color
|
--- You can override specific highlights to use other groups or a hex color
|
||||||
|
|
@ -37,10 +37,10 @@ return {
|
||||||
highlights.PmenuSel = { bg = colors.bg_hl_line }
|
highlights.PmenuSel = { bg = colors.bg_hl_line }
|
||||||
highlights.PmenuExtra = { bg = colors.bg_alt }
|
highlights.PmenuExtra = { bg = colors.bg_alt }
|
||||||
highlights.FloatBorder = { bg = colors.bg_alt }
|
highlights.FloatBorder = { bg = colors.bg_alt }
|
||||||
highlights.NormalFloat = { bg = "#f8f9fa" }
|
-- highlights.NormalFloat = { bg = "#f8f9fa" } -- Change the floating windows background to light grey
|
||||||
highlights.CursorLine = { bg = "#effaff" }
|
highlights.CursorLine = { bg = "#effaff" }
|
||||||
highlights.Directory = { fg = "#000000" }
|
highlights.Directory = { fg = "#000000" }
|
||||||
highlights.LineNr = { fg = colors.fg_dim, bg = "#ffffff" }
|
-- highlights.LineNr = { fg = colors.fg_dim, bg = "#ffffff" }
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,38 @@
|
||||||
|
local colors = {
|
||||||
|
black = "#000000",
|
||||||
|
maroon = "#800000",
|
||||||
|
green = "#008000",
|
||||||
|
hlGreen = "#cbf0d3",
|
||||||
|
olive = "#808000",
|
||||||
|
navy = "#000080",
|
||||||
|
purple = "#800080",
|
||||||
|
teal = "#008080",
|
||||||
|
silver = "#c0c0c0",
|
||||||
|
gray = "#808080",
|
||||||
|
red = "#ff0000",
|
||||||
|
lime = "#00ff00",
|
||||||
|
yellow = "#ffff00",
|
||||||
|
blue = "#0000ff",
|
||||||
|
fuchsia = "#ff00ff",
|
||||||
|
aqua = "#00ffff",
|
||||||
|
white = "#ffffff",
|
||||||
|
}
|
||||||
|
|
||||||
|
local custom16Colors = {
|
||||||
|
normal = {
|
||||||
|
a = { fg = colors.white, bg = colors.blue, gui = "bold" },
|
||||||
|
b = { fg = colors.white, bg = colors.gray },
|
||||||
|
c = { fg = colors.silver, bg = colors.black },
|
||||||
|
},
|
||||||
|
insert = { a = { fg = colors.white, bg = colors.green, gui = "bold" } },
|
||||||
|
visual = { a = { fg = colors.black, bg = colors.hlGreen, gui = "bold" } },
|
||||||
|
replace = { a = { fg = colors.white, bg = colors.red, gui = "bold" } },
|
||||||
|
inactive = {
|
||||||
|
a = { fg = colors.silver, bg = colors.gray, gui = "bold" },
|
||||||
|
b = { fg = colors.gray, bg = colors.black },
|
||||||
|
c = { fg = colors.silver, bg = colors.black },
|
||||||
|
},
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
|
@ -8,7 +43,7 @@ return {
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
theme = "16color",
|
theme = custom16Colors,
|
||||||
component_separators = { left = "", right = "" },
|
component_separators = { left = "", right = "" },
|
||||||
section_separators = { left = "", right = "" },
|
section_separators = { left = "", right = "" },
|
||||||
disabled_filetypes = {
|
disabled_filetypes = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue