custom colors
This commit is contained in:
@ -8,7 +8,29 @@ return {
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
config = function()
|
||||
local custom_highlight = vim.api.nvim_create_augroup("CustomHighlight", {})
|
||||
vim.api.nvim_create_autocmd("colorscheme", {
|
||||
pattern = "moonfly",
|
||||
callback = function()
|
||||
local p = require("moonfly").palette
|
||||
local unused = p.test
|
||||
local highlights = { "", "VirtualText", "Underline", "Sign", "Floating" }
|
||||
for _, h in ipairs(highlights) do
|
||||
vim.api.nvim_set_hl(0, "Diagnostic" .. h .. "Error", { fg = p.crimson, bold = true })
|
||||
vim.api.nvim_set_hl(0, "Diagnostic" .. h .. "Warn", { fg = p.yellow, bold = true })
|
||||
vim.api.nvim_set_hl(0, "Diagnostic" .. h .. "Info", { fg = p.sky, bold = true })
|
||||
vim.api.nvim_set_hl(0, "Diagnostic" .. h .. "Hint", { fg = p.turqoise, bold = true })
|
||||
vim.api.nvim_set_hl(0, "Diagnostic" .. h .. "Ok", { fg = p.emerald, bold = true })
|
||||
end
|
||||
end,
|
||||
group = custom_highlight,
|
||||
})
|
||||
|
||||
vim.cmd("colorscheme moonfly")
|
||||
vim.g.moonflyCursorColor = true
|
||||
vim.g.moonflyItalics = true
|
||||
vim.g.moonflyUnderlineMatchParen = true
|
||||
vim.g.moonflyVirtualTextColor = true
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
|
Reference in New Issue
Block a user