diff options
Diffstat (limited to '.config/nvim/lua')
| -rw-r--r-- | .config/nvim/lua/caelus/init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/nvim/lua/caelus/init.lua b/.config/nvim/lua/caelus/init.lua index dec0a41..2507bea 100644 --- a/.config/nvim/lua/caelus/init.lua +++ b/.config/nvim/lua/caelus/init.lua @@ -29,6 +29,15 @@ local colors = { } function M.colorscheme() + -- Prefer wallust-generated colors (auto-themed from the wallpaper). + local wallust = (os.getenv("HOME") or "") .. "/.cache/wallust/colors/wallust.lua" + if vim.loop.fs_stat(wallust) and pcall(dofile, wallust) then + if package.loaded['lualine'] then + require('lualine').setup({ options = { theme = 'auto' } }) + end + return + end + vim.cmd("highlight clear") vim.cmd("syntax reset") |
