custom colors
This commit is contained in:
@ -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()
|
||||
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
@ -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,
|
||||
},
|
||||
-- {
|
||||
|
@ -1,7 +1,7 @@
|
||||
local M = {
|
||||
use_google_cache = nil,
|
||||
flags = {
|
||||
blink = false,
|
||||
blink = true,
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user