-- ~/.config/nvim/lua/custom_colorschemes/alacritty_colour_jory.lua

local alacritty_colour_jory = {}

alacritty_colour_jory.setup = function()
  vim.cmd("highlight clear")
  vim.cmd("syntax reset")
  vim.o.background = "dark"
  vim.g.colors_name = "alacritty_colour_jory"

  local colors = {
    bg = "#1f0d00",
    fg = "#dfbf8e",
    black = "#665c54",
    blue = "#7daea3",
    cyan = "#89b482",
    green = "#a9b665",
    magenta = "#d3869b",
    red = "#ea6962",
    white = "#dfbf8e",
    yellow = "#e78a4e",
  }

  vim.api.nvim_set_hl(0, "Normal", { fg = colors.fg, bg = colors.bg })
  vim.api.nvim_set_hl(0, "Comment", { fg = colors.black, italic = true })
  vim.api.nvim_set_hl(0, "Constant", { fg = colors.magenta })
  vim.api.nvim_set_hl(0, "String", { fg = colors.green })
  vim.api.nvim_set_hl(0, "Function", { fg = colors.blue })
  vim.api.nvim_set_hl(0, "Identifier", { fg = colors.red })
  vim.api.nvim_set_hl(0, "Statement", { fg = colors.yellow })
  vim.api.nvim_set_hl(0, "Type", { fg = colors.cyan })
  vim.api.nvim_set_hl(0, "Special", { fg = colors.white })
  -- Add more highlight groups as needed
end

return alacritty_colour_jory
