summaryrefslogtreecommitdiff
path: root/lua/cshift/autocolor.lua
blob: 10155d28e87a8fa249acbe15b96039e86f2a9ba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
local autocolors = vim.api.nvim_create_augroup("AutoColors", {clear = true})

vim.api.nvim_create_autocmd("ColorScheme", {
	pattern = "*",
	callback = function()
		vim.cmd("highlight Normal ctermbg=none")
		vim.cmd("highlight EndOfBuffer ctermbg=none")
		vim.cmd("highlight NonText ctermbg=none")
	end,
	group = autocolors
})