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 = "forestbones"
package.loaded["forestbones"] = nil
require "lush"(require "forestbones")
require "lush"(require "forestbones", { force_clean = false })
local p = require("forestbones.palette")[vim.opt.background:get()]
require("zenbones.term").apply_colors(p)

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)

View File

@@ -1,8 +1,12 @@
if vim.g.colors_name then
vim.api.nvim_command "highlight clear"
end
vim.g.colors_name = "nordbones"
vim.opt.background = "dark"
package.loaded["nordbones"] = nil
require "lush"(require "nordbones")
require "lush"(require "nordbones", { force_clean = false })
local p = require("nordbones.palette").derived
require("zenbones.term").apply_colors(p)

View File

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

View File

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

View File

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