custom colors

This commit is contained in:
Christian Nieves
2024-12-15 13:17:36 -06:00
parent aefb0f1815
commit d06b8c1693
4 changed files with 26 additions and 13 deletions

View File

@ -20,7 +20,7 @@ return {
},
},
{
"Maan2003/lsp_lines.nvim",
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
event = { "LspAttach" },
name = "lsp_lines.nvim",
config = function()

View File

@ -6,18 +6,9 @@ return {
},
{
"saecki/crates.nvim",
-- event = { "BufRead Cargo.toml" },
-- ft = "rust",
-- dependencies = { "nvim-lua/plenary.nvim" },
event = { "BufRead Cargo.toml" },
config = function()
require("crates").setup({
completion = {
cmp = {
enabled = true,
},
},
})
require("crates").setup()
end,
},
}

View File

@ -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,
},
-- {

View File

@ -1,7 +1,7 @@
local M = {
use_google_cache = nil,
flags = {
blink = false,
blink = true,
},
}