Fix pywal missing
This commit is contained in:
@@ -10,18 +10,18 @@ return {
|
|||||||
},
|
},
|
||||||
priority = 1000, -- Make sure to load this before all the other start plugins.
|
priority = 1000, -- Make sure to load this before all the other start plugins.
|
||||||
config = function()
|
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
|
---@diagnostic disable-next-line: missing-fields
|
||||||
require('tokyonight').setup();
|
require('tokyonight').setup()
|
||||||
|
|
||||||
vim.cmd.colorscheme 'tokyonight-night'
|
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,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user