-- setup must be called before loading the colorscheme
-- Default options:
require("gruvbox").setup({
	terminal_colors = true, -- add neovim terminal colors
	undercurl = true,
	underline = true,
	bold = true,
	italic = {
		strings = true,
		emphasis = true,
		comments = true,
		operators = false,
		folds = true,
	},
	strikethrough = true,
	invert_selection = false,
	invert_signs = false,
	invert_tabline = false,
	invert_intend_guides = false,
	inverse = true, -- invert background for search, diffs, statuslines and errors
	contrast = "", -- can be "hard", "soft" or empty string
	palette_overrides = {},
	overrides = {},
	dim_inactive = false,
	transparent_mode = not vim.g.neovide,
})

require('color-scheme')

local color_scheme_file = os.getenv("HOME") .. "/.cache/dotfiles/.config/nvim/lua/color-scheme.lua"
require('fwatch').watch(color_scheme_file, "luafile " .. color_scheme_file)

vim.cmd([[colorscheme gruvbox]])
