diff --git a/init.lua b/init.lua index ca1df3d..a49c56a 100644 --- a/init.lua +++ b/init.lua @@ -68,10 +68,8 @@ end if vim.fn.executable('darkman') then local mode = vim.trim(vim.fn.system('darkman get')) - if mode == 'dark' then - vim.o.background = 'dark' - elseif mode == 'light' then - vim.o.background = 'light' + if mode == 'dark' or mode == 'light' then + vim.o.background = mode end end