]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/colorscheme.lua
nvim: disable lazy loading additional colorschemes
[dotfiles.git] / nvim / lua / plugins / colorscheme.lua
index 8e1ae25dd2ba222b4a7290f274135b6a866315b7..873902e503fcafc94167ae4167a5d412d21ad654 100644 (file)
@@ -1,83 +1,77 @@
----@type LazyPluginSpec
+---@type LazySpec
 return {
-  {
-    "LazyVim",
-    opts = { colorscheme = "onenord" },
-    dependencies = { "onenord.nvim" },
-  },
-  {
-    -- 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",
-        opts = {
-          color_overrides = {
-            -- https://github.com/catppuccin/nvim/discussions/323#discussioncomment-5760383
-            mocha = {
-              rosewater = "#BF616A",
-              flamingo = "#BF616A",
-              pink = "#B48EAD",
-              mauve = "#B48EAD",
-              red = "#BF616A",
-              maroon = "#BF616A",
-              peach = "#D08770",
-              yellow = "#EBCB8B",
-              green = "#A3BE8C",
-              teal = "#88c0d0",
-              sky = "#88c0d0",
-              sapphire = "#88c0d0",
-              blue = "#81a1c1",
-              lavender = "#81a1c1",
-              text = "#ECEFF4",
-              subtext1 = "#E5E9F0",
-              subtext0 = "#D8DEE9",
-              overlay2 = "#8d9196",
-              overlay1 = "#81858b",
-              overlay0 = "#4C566A",
-              surface2 = "#434C5E",
-              surface1 = "#3B4252",
-              surface0 = "#292e39",
-              base = "#242933",
-              mantle = "#20242d",
-              crust = "#1c2028",
-            },
-          },
+  { "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 },
         },
-      },
-      {
-        "shaunsingh/nord.nvim",
-        dev = true,
-        init = function()
-          vim.g.nord_contrats = true
-          vim.g.nord_borders = true
-          vim.g.nord_bold = false
-          vim.g.nord_uniform_diff_background = false
-          vim.g.nord_disable_background = false
-        end,
-      },
-      -- conflicts with above
-      -- { "gbprod/nord.nvim"},
-    },
+      })
+      return opts
+    end,
   },
+  -- FIXME: Find a way to lazy load all colorschemes when invoking the picker
+  -- https://github.com/folke/lazy.nvim/discussions/1167
+  -- { name = "colorschemes",
+  --   -- this meta plugin can be used to install all colorschemes to test with a picker
+  --   dir = "",  -- NOTE: empty dir no longer works
+  --   lazy = true,
+  --   dependencies = {
+  --     {
+  --       "catppuccin/nvim",
+  --       name = "catppuccin",
+  --       opts = {
+  --         color_overrides = {
+  --           -- https://github.com/catppuccin/nvim/discussions/323#discussioncomment-5760383
+  --           mocha = {
+  --             rosewater = "#BF616A",
+  --             flamingo = "#BF616A",
+  --             pink = "#B48EAD",
+  --             mauve = "#B48EAD",
+  --             red = "#BF616A",
+  --             maroon = "#BF616A",
+  --             peach = "#D08770",
+  --             yellow = "#EBCB8B",
+  --             green = "#A3BE8C",
+  --             teal = "#88c0d0",
+  --             sky = "#88c0d0",
+  --             sapphire = "#88c0d0",
+  --             blue = "#81a1c1",
+  --             lavender = "#81a1c1",
+  --             text = "#ECEFF4",
+  --             subtext1 = "#E5E9F0",
+  --             subtext0 = "#D8DEE9",
+  --             overlay2 = "#8d9196",
+  --             overlay1 = "#81858b",
+  --             overlay0 = "#4C566A",
+  --             surface2 = "#434C5E",
+  --             surface1 = "#3B4252",
+  --             surface0 = "#292e39",
+  --             base = "#242933",
+  --             mantle = "#20242d",
+  --             crust = "#1c2028",
+  --           },
+  --         },
+  --       },
+  --     },
+  --     {
+  --       "shaunsingh/nord.nvim",
+  --       init = function()
+  --         vim.g.nord_contrats = true
+  --         vim.g.nord_borders = true
+  --         vim.g.nord_bold = false
+  --         vim.g.nord_uniform_diff_background = false
+  --         vim.g.nord_disable_background = false
+  --       end,
+  --     },
+  --     -- conflicts with above
+  --     -- { "gbprod/nord.nvim"},
+  --   },
+  -- },
 }