clear highlight only when not the default

slightly improve startup
This commit is contained in:
Michael Chris Lopez
2021-10-18 11:57:02 +08:00
parent b5fef23fdd
commit 46acbfddfd
6 changed files with 30 additions and 6 deletions

View File

@@ -1,7 +1,11 @@
if vim.g.colors_name then
vim.api.nvim_command "highlight clear"
end
vim.g.colors_name = "neobones"
package.loaded["neobones"] = nil
require "lush"(require "neobones")
require "lush"(require "neobones", { force_clean = false })
local p = require("neobones.palette")[vim.opt.background:get()]
require("zenbones.term").apply_colors(p)