nvim: use dracula if wal is unavailable

This commit is contained in:
Mark Riedesel 2024-08-10 16:40:16 -05:00
parent 4fa6b6e1d8
commit 5a97230c7f
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,9 @@
return {
"Mofiqul/dracula.nvim",
cond = function ()
return vim.fn.executable('wal') == 0 -- if wal is unavailable, I'll use Dracula
end,
config = function ()
vim.cmd('colorscheme dracula')
end,
}

View file

@ -18,9 +18,11 @@ local function add_tweaks()
-- always set IblIndent to a slightly brighter version of the background color -- always set IblIndent to a slightly brighter version of the background color
vim.cmd('hi IblIndent guifg=' .. brightness(get_color('Normal', 'bg'), 20)) vim.cmd('hi IblIndent guifg=' .. brightness(get_color('Normal', 'bg'), 20))
end end
return { return {
'AlphaTechnolog/pywal.nvim', 'AlphaTechnolog/pywal.nvim',
cond = function ()
return vim.fn.executable('wal') == 1
end,
config = function () config = function ()
vim.cmd('colorscheme pywal') vim.cmd('colorscheme pywal')
add_tweaks() add_tweaks()