mirror of
https://github.com/zoriya/flake.git
synced 2026-05-29 17:33:20 +00:00
Use default nvim background detection instead of lumen on startup
This commit is contained in:
@@ -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
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user