From 6647d6033ce61f09fc38e433730c523ee1f3f7e1 Mon Sep 17 00:00:00 2001 From: fabian Date: Thu, 26 Sep 2024 10:42:02 +0200 Subject: [PATCH] always darkmode on linux --- lua/plugins/themes.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lua/plugins/themes.lua b/lua/plugins/themes.lua index b831579..0c18f37 100644 --- a/lua/plugins/themes.lua +++ b/lua/plugins/themes.lua @@ -22,8 +22,14 @@ return { vim.cmd("colorscheme moonfly") end, set_light_mode = function() - vim.api.nvim_set_option_value("background", "light", {}) - vim.cmd("colorscheme modus") + local uname = vim.loop.os_uname() + if uname.sysname == 'Linux' then + vim.api.nvim_set_option_value("background", "dark", {}) + vim.cmd("colorscheme moonfly") + else + vim.api.nvim_set_option_value("background", "light", {}) + vim.cmd("colorscheme modus") + end end, }, },