Use default nvim background detection instead of lumen on startup

This commit is contained in:
2024-07-06 23:31:31 +07:00
parent e1ea28644f
commit a1ffd57e52
2 changed files with 6 additions and 9 deletions
@@ -44,7 +44,11 @@ return {
{
"vimpostor/vim-lumen",
lazy = false,
priority = 1000,
event = "VeryLazy",
init = function()
-- keep vim's default behavior of checking the terminal's colors
-- Only use lumen to detect runtime changes (that's why VeryLazy is used).
vim.g.lumen_startup_overwrite = 0
end
},
}
-7
View File
@@ -113,10 +113,3 @@ vim.api.nvim_create_autocmd('TextYankPost', {
})
end,
})
if vim.call("has", "wsl") == 1 then
-- Lumen takes 170ms on windows and I only use the windows laptop at work, with light mode.
vim.g.lumen_startup_overwrite = 0
vim.opt.background = "light"
end