From: Samir Benmendil Date: Sun, 9 Feb 2025 19:47:15 +0000 (+0000) Subject: lazyvim: absorb colorscheme config X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/d08d39f309bc1a22b21f0876d68171e9f38a0c5f lazyvim: absorb colorscheme config --- diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua index b88ded7..68de635 100644 --- a/nvim/lua/config/lazy.lua +++ b/nvim/lua/config/lazy.lua @@ -27,7 +27,7 @@ require("lazy").setup({ version = false, -- always use the latest git commit -- version = "*", -- try installing the latest stable version for plugins that support semver }, - install = { colorscheme = { "tokyonight", "habamax" } }, + install = { colorscheme = { "onenord", "habamax" } }, checker = { -- automatically check for plugin updates enabled = true, diff --git a/nvim/lua/plugins/colorscheme.lua b/nvim/lua/plugins/colorscheme.lua index 8e1ae25..501246e 100644 --- a/nvim/lua/plugins/colorscheme.lua +++ b/nvim/lua/plugins/colorscheme.lua @@ -1,33 +1,26 @@ ----@type LazyPluginSpec +---@type LazySpec return { - { - "LazyVim", - opts = { colorscheme = "onenord" }, - dependencies = { "onenord.nvim" }, + { "rmehri01/onenord.nvim", + lazy = false, + priority = 1000, + opts = function(_, opts) + local colors = require("onenord.colors").load() + opts = vim.tbl_extend("force", opts, { + custom_highlights = { + ["@parameter"] = { fg = colors.fg }, + ["@namespace"] = { fg = colors.fg }, + ["@type"] = { fg = colors.fg }, + ["@variable.builtin"] = { fg = colors.fg }, + }, + }) + return opts + end, }, - { + { name = "colorschemes", -- this meta plugin can be used to install all colorschemes to test with telescope - name = "colorschemes", dir = "", lazy = true, dependencies = { - { - -- requires too much configuration to make look good - "rmehri01/onenord.nvim", - opts = function(_, opts) - local colors = require("onenord.colors").load() - opts = vim.tbl_extend("force", opts, { - custom_highlights = { - ["@parameter"] = { fg = colors.fg }, - ["@namespace"] = { fg = colors.fg }, - ["@type"] = { fg = colors.fg }, - ["@variable.builtin"] = { fg = colors.fg }, - }, - }) - return opts - end, - }, - { "folke/tokyonight.nvim" }, { "catppuccin/nvim", name = "catppuccin", @@ -67,7 +60,6 @@ return { }, { "shaunsingh/nord.nvim", - dev = true, init = function() vim.g.nord_contrats = true vim.g.nord_borders = true