From 8e403e22a13a66fb5726fc71b14341a5fd0999ad Mon Sep 17 00:00:00 2001 From: Cheick Diarra Date: Wed, 8 May 2024 23:26:52 +0200 Subject: [PATCH] add custom visual color #cbf0d3 --- lua/plugins/color-scheme.lua | 10 +++++----- lua/plugins/lua-line.lua | 37 +++++++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 6 deletions(-) diff --git a/lua/plugins/color-scheme.lua b/lua/plugins/color-scheme.lua index 45ff8f8..509b0be 100644 --- a/lua/plugins/color-scheme.lua +++ b/lua/plugins/color-scheme.lua @@ -9,8 +9,8 @@ return { -- `auto` will automatically set style based on background set with vim.o.background style = "auto", variant = "default", -- Theme comes in four variants `default`, `tinted`, `deuteranopia`, and `tritanopia` - transparent = true, -- Transparent background (as supported by the terminal) - dim_inactive = false, -- "non-current" windows are dimmed + transparent = false, -- Transparent background (as supported by the terminal) + dim_inactive = true, -- "non-current" windows are dimmed styles = { -- Style to be applied to different syntax groups -- Value is any valid attr-list value for `:help nvim_set_hl` @@ -25,7 +25,7 @@ return { ---@param colors ColorScheme on_colors = function(colors) colors.bg_active = "#ffffff" -- changed from #e0e0e0, we also like #f8f9fa - colors.visual = "#72f64a" + colors.visual = "#cbf0d3" end, --- 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.PmenuExtra = { 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.Directory = { fg = "#000000" } - highlights.LineNr = { fg = colors.fg_dim, bg = "#ffffff" } + -- highlights.LineNr = { fg = colors.fg_dim, bg = "#ffffff" } end, }) diff --git a/lua/plugins/lua-line.lua b/lua/plugins/lua-line.lua index d5575c2..250f54e 100644 --- a/lua/plugins/lua-line.lua +++ b/lua/plugins/lua-line.lua @@ -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 { "nvim-lualine/lualine.nvim", dependencies = { "nvim-tree/nvim-web-devicons" }, @@ -8,7 +43,7 @@ return { require("lualine").setup({ options = { icons_enabled = true, - theme = "16color", + theme = custom16Colors, component_separators = { left = "", right = "" }, section_separators = { left = "", right = "" }, disabled_filetypes = {