From 8d1278b84a1eaab528305bbe10703a73358ba4bd Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 9 Mar 2026 23:20:40 +0000 Subject: [PATCH] Fix pywal missing --- lua/plugins/color.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lua/plugins/color.lua b/lua/plugins/color.lua index 56a124f..3c034e6 100644 --- a/lua/plugins/color.lua +++ b/lua/plugins/color.lua @@ -10,18 +10,18 @@ return { }, priority = 1000, -- Make sure to load this before all the other start plugins. config = function() - - -- Check if wal directory exists otherwise use tokyo - local handle = io.popen('ls -d $HOME/.cache/wal 2>/dev/null') - local result = handle:read('*a') - handle:close() - ---@diagnostic disable-next-line: missing-fields - require('tokyonight').setup(); + require('tokyonight').setup() vim.cmd.colorscheme 'tokyonight-night' - require('pywal').setup(); + -- Check if wal directory exists otherwise use tokyo + local handle = io.popen 'ls -d $HOME/.cache/wal 2>/dev/null' + local result = handle:read '*a' + handle:close() + if result ~= '' then + require('pywal').setup() + end end, }