From d06b8c169360057bd6bf3616336f446cc30d019b Mon Sep 17 00:00:00 2001 From: Christian Nieves Date: Sun, 15 Dec 2024 13:17:36 -0600 Subject: [PATCH] custom colors --- vim/.vim/lua/plugins/diagnostics.lua | 2 +- vim/.vim/lua/plugins/rust.lua | 13 ++----------- vim/.vim/lua/plugins/themes-personal.lua | 22 ++++++++++++++++++++++ vim/.vim/lua/utils.lua | 2 +- 4 files changed, 26 insertions(+), 13 deletions(-) diff --git a/vim/.vim/lua/plugins/diagnostics.lua b/vim/.vim/lua/plugins/diagnostics.lua index a4b78c7..581453a 100644 --- a/vim/.vim/lua/plugins/diagnostics.lua +++ b/vim/.vim/lua/plugins/diagnostics.lua @@ -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() diff --git a/vim/.vim/lua/plugins/rust.lua b/vim/.vim/lua/plugins/rust.lua index 9006833..05ed6a7 100644 --- a/vim/.vim/lua/plugins/rust.lua +++ b/vim/.vim/lua/plugins/rust.lua @@ -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, }, } diff --git a/vim/.vim/lua/plugins/themes-personal.lua b/vim/.vim/lua/plugins/themes-personal.lua index b78098a..ba85db2 100644 --- a/vim/.vim/lua/plugins/themes-personal.lua +++ b/vim/.vim/lua/plugins/themes-personal.lua @@ -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, }, -- { diff --git a/vim/.vim/lua/utils.lua b/vim/.vim/lua/utils.lua index 8689ef8..97e7041 100644 --- a/vim/.vim/lua/utils.lua +++ b/vim/.vim/lua/utils.lua @@ -1,7 +1,7 @@ local M = { use_google_cache = nil, flags = { - blink = false, + blink = true, }, }