From 5918823664f1662db480ea809247297ff01562fc Mon Sep 17 00:00:00 2001 From: Marcelo Jacobus Date: Thu, 22 Aug 2024 09:49:48 -0300 Subject: [PATCH] Attempting new colors --- init.lua | 81 +++++++++++++++++++++++++++++++++++++++-- lua/plugins/lazyvim.lua | 14 +++++++ 2 files changed, 92 insertions(+), 3 deletions(-) create mode 100644 lua/plugins/lazyvim.lua diff --git a/init.lua b/init.lua index 90d9a9d..84ce3de 100644 --- a/init.lua +++ b/init.lua @@ -31,6 +31,81 @@ if lspconfig and lspconfig.solargraph and lspconfig.solargraph.setup then }) end --- vim.defer_fn(function() --- vim.cmd([[highlight Comment guifg=#222436 guibg=#5c5e77 gui=italic]]) --- end, 100) +vim.defer_fn(function() + local light_bg = "#394264" + local slightly_darker_bg = "#384160" + local dark_bg = "#222437" + + -- vim.api.nvim_set_hl(0, "Normal", { bg = light_bg }) + -- vim.api.nvim_set_hl(0, "NormalFloat", { bg = light_bg }) + -- vim.api.nvim_set_hl(0, "NormalNC", { bg = light_bg }) + -- -- vim.cmd([[highlight Comment guifg=#222436 guibg=#5c5e77 gui=italic]]) + -- + -- -- Set a vertical line at column 100 + -- vim.opt.colorcolumn = "100" + -- vim.api.nvim_set_hl(0, "ColorColumn", { bg = slightly_darker_bg }) -- Use the desired color + -- + -- vim.api.nvim_set_hl(0, "LineNr", { fg = dark_bg }) + -- + -- vim.opt.cursorline = true + -- vim.api.nvim_set_hl(0, "CursorLine", { bg = slightly_darker_bg }) + -- + -- -- Set the background color for DiagnosticSignError + -- vim.api.nvim_set_hl(0, "DiagnosticSignError", { bg = light_bg, fg = "#ff0000" }) -- Set your desired colors + -- + -- -- Set the background color for DiagnosticSignWarn + -- vim.api.nvim_set_hl(0, "DiagnosticSignWarn", { bg = light_bg, fg = "#ffaa00" }) -- Set your desired colors + -- + -- -- Set the background color for DiagnosticSignInfo + -- vim.api.nvim_set_hl(0, "DiagnosticSignInfo", { bg = light_bg, fg = "#00aaff" }) -- Set your desired colors + -- + -- -- Set the background color for DiagnosticSignHint + -- vim.api.nvim_set_hl(0, "DiagnosticSignHint", { bg = light_bg, fg = "#00ff00" }) -- Set your desired colors + + -- Define the new background color + -- local new_bg = light_bg + + -- Update the highlight groups that match the original background + -- local highlights = { + -- -- General UI elements + -- "Normal", + -- "NormalNC", + -- "CursorLine", + -- "CursorLineNr", + -- "ColorColumn", + -- "SignColumn", + -- "StatusLine", + -- "StatusLineNC", + -- "TabLine", + -- "TabLineFill", + -- "TabLineSel", + -- "VertSplit", + -- "WinSeparator", + -- + -- -- Editor elements + -- "LineNr", + -- "Folded", + -- "NonText", + -- "SpecialKey", + -- "EndOfBuffer", + -- "IncSearch", + -- "Search", + -- "Visual", + -- "VisualNOS", + -- + -- -- Diagnostics + -- "DiagnosticSignError", + -- "DiagnosticSignWarn", + -- "DiagnosticSignInfo", + -- "DiagnosticSignHint", + -- + -- -- Gutter elements (like Git signs) + -- "GitSignsAdd", + -- "GitSignsChange", + -- "GitSignsDelete", + -- } + -- + -- for _, group in ipairs(highlights) do + -- vim.api.nvim_set_hl(0, group, { bg = new_bg }) + -- end +end, 100) diff --git a/lua/plugins/lazyvim.lua b/lua/plugins/lazyvim.lua new file mode 100644 index 0000000..e71f40c --- /dev/null +++ b/lua/plugins/lazyvim.lua @@ -0,0 +1,14 @@ +return { + "LazyVim/LazyVim", + opts = { + -- colorscheme = "tokyonight-moon", + colorscheme = "tokyonight-storm", + config = function() + vim.defer_fn(function() + vim.api.nvim_set_hl(0, "Normal", { bg = "#394264" }) -- Change background color + vim.api.nvim_set_hl(0, "NormalFloat", { bg = "#394264" }) -- Change background for floating windows + vim.cmd([[highlight Comment guifg=#222436 guibg=#5c5e77 gui=italic]]) + end, 1000) + end, + }, +}