From aa459c4f523c76745947c2f363105cec6caf85b4 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Fri, 31 Jul 2026 12:25:06 -0400 Subject: [PATCH] Lazy-load colorschemes and key-analyzer defaults.lazy = false meant every colorscheme spec with opts ran setup() on each launch; gruvbox, kanagawa, nightfox and moonbow all showed up in the startup profile. lazy.nvim loads colorscheme plugins on demand via ColorSchemePre. Drop monochrome (last commit 2021) and onedarker (2022), point install.colorscheme at the theme actually in use, and gate key-analyzer behind its command. Co-Authored-By: Claude Opus 5 --- lua/config/lazy.lua | 2 +- lua/plugins/colorschemes.lua | 18 ++++++++++++------ lua/plugins/key-analyzer.lua | 1 + 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index e0de66d..d4f73b0 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -28,7 +28,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 = { "kanagawa-dragon", "habamax" } }, checker = { enabled = true }, -- automatically check for plugin updates git = { concurrency = 3, -- reduce concurrent git operations (default is higher) diff --git a/lua/plugins/colorschemes.lua b/lua/plugins/colorschemes.lua index be37c5c..52385e3 100644 --- a/lua/plugins/colorschemes.lua +++ b/lua/plugins/colorschemes.lua @@ -7,6 +7,7 @@ return { }, { "ellisonleao/gruvbox.nvim", + lazy = true, opts = { contrast = "hard", palette_overrides = { @@ -29,12 +30,14 @@ return { }, { "arturgoms/moonbow.nvim", + lazy = true, opts = { dim_inactive = true, }, }, { "rebelot/kanagawa.nvim", + lazy = true, opts = { dimInactive = true, colors = { @@ -62,9 +65,9 @@ return { }, }, }, - { "kdheepak/monochrome.nvim" }, { "folke/tokyonight.nvim", + lazy = true, opts = { style = "night", dim_inactive = true, @@ -73,6 +76,7 @@ return { { "catppuccin/nvim", name = "catppuccin", + lazy = true, opts = { flavour = "mocha", dim_inactive = { @@ -80,15 +84,16 @@ return { }, }, }, - { "LunarVim/onedarker.nvim" }, { "EdenEast/nightfox.nvim", + lazy = true, opts = { dim_inactive = true, }, }, { "mcchrish/zenbones.nvim", + lazy = true, dependencies = { "rktjmp/lush.nvim" }, config = function() local opts = { @@ -106,26 +111,27 @@ return { }, { "HoNamDuong/hybrid.nvim", - lazy = false, + lazy = true, opts = {}, }, { -- My own colorscheme, aka. thallada/farout.nvim "thallada/farout.nvim", + lazy = true, opts = { dim_inactive = true, }, }, { "xero/miasma.nvim", - lazy = false, - priority = 1000, + lazy = true, }, { "ptdewey/darkearth-nvim", - priority = 1000, + lazy = true, }, { "nyoom-engineering/oxocarbon.nvim", + lazy = true, }, } diff --git a/lua/plugins/key-analyzer.lua b/lua/plugins/key-analyzer.lua index 0efa01e..51837ea 100644 --- a/lua/plugins/key-analyzer.lua +++ b/lua/plugins/key-analyzer.lua @@ -1,4 +1,5 @@ return { "meznaric/key-analyzer.nvim", + cmd = "KeyAnalyzer", opts = {}, }