mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
Attempting new colors
This commit is contained in:
parent
af400db6c8
commit
5918823664
2 changed files with 92 additions and 3 deletions
81
init.lua
81
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)
|
||||
|
|
|
|||
14
lua/plugins/lazyvim.lua
Normal file
14
lua/plugins/lazyvim.lua
Normal file
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue