From 6d04396c39ed45323db1dd6f05d356e960c5eb7b Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 29 Dec 2024 15:24:46 -0800 Subject: [PATCH] feat: lazy-load colorschemes --- flake.nix | 8 ++++---- lua/plugins/lz-spec.lua | 23 ++++++----------------- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/flake.nix b/flake.nix index a9c3fbb..ba2b92f 100644 --- a/flake.nix +++ b/flake.nix @@ -122,10 +122,6 @@ # for some reason trigger_load still fails to load this in the # proper order telescope-ui-select-nvim - - # colorschemes - rose-pine - oxocarbon-nvim ]; }; @@ -178,6 +174,10 @@ lsp-progress-nvim lazydev-nvim obsidian-nvim + + # colorschemes + rose-pine + oxocarbon-nvim ]; }; diff --git a/lua/plugins/lz-spec.lua b/lua/plugins/lz-spec.lua index be3b37f..3ea0ad7 100644 --- a/lua/plugins/lz-spec.lua +++ b/lua/plugins/lz-spec.lua @@ -239,22 +239,11 @@ return { end, }, { - "obsidian.nvim", - filetypes = { "markdown" }, - after = function() - require("obsidian").setup({ - ui = { enable = false }, - workspaces = { - { - name = "vault", - path = "~/Documents/vaults/vault", - }, - { - name = "alexandria", - path = "~/Documents/alexandria/content", - }, - }, - }) - end, + "rose-pine", + colorscheme = { "rose-pine", "rose-pine-dawn", "rose-pine-moon", "rose-pine-main" }, + }, + { + "oxocarbon.nvim", + colorscheme = { "oxocarbon" }, }, }