local use_google = require("utils").use_google

return {
  {
    "ful1e5/onedark.nvim",
    priority = 1000,         -- make sure to load this before all the other start plugins
    lazy = not use_google(), -- make sure we load this during startup if it is your main colorscheme
    cond = use_google(),
    config = function()
      -- require("onedark").setup()
    end,
  },
  {
    "catppuccin/nvim",
    name = "catppuccin",
    priority = 1000,         -- make sure to load this before all the other start plugins
    lazy = not use_google(), -- make sure we load this during startup if it is your main colorscheme
    cond = use_google(),
    config = function()
      vim.g.catppuccin_flavour = "macchiato" -- latte, frappe, macchiato, mocha
      local colors = require("catppuccin.palettes").get_palette()

      require("catppuccin").setup({
        flavour = "mocha",
        integrations = {
          cmp = true,
          -- coc_nvim = false,
          dashboard = true,
          -- fern = false,
          fidget = true,
          gitgutter = true,
          gitsigns = true,
          -- hop = false,
          illuminate = true,
          leap = false,
          -- lightspeed = false,
          -- lsp_saga = false,
          lsp_trouble = true,
          mason = true,
          markdown = true,
          -- neogit = false,
          -- neotest = false,
          neotree = true,
          notify = true,
          nvimtree = true,
          -- overseer = false,
          -- pounce = false,
          symbols_outline = true,
          telescope = true,
          treesitter = true,
          treesitter_context = true,
          -- ts_rainbow = false,
          -- vim_sneak = false,
          -- vimwiki = false,
          which_key = true,
          -- Special integrations, see https://github.com/catppuccin/nvim#special-integrations
          dap = true,
          dap_ui = true,
          indent_blankline = {
            enabled = true,
            colored_indent_levels = false,
          },
        },
        native_lsp = {
          enabled = true,
          virtual_text = {
            errors = { "italic" },
            hints = { "italic" },
            warnings = { "italic" },
            information = { "italic" },
          },
          underlines = {
            errors = { "underline" },
            hints = { "underline" },
            warnings = { "underline" },
            information = { "underline" },
          },
          inlay_hints = {
            background = true,
          },
        },
        custom_highlights = {
          -- Identifier = { fg = colors.lavender },
          -- Statement = { fg = colors.rosewater },
          -- Identifier = { fg = colors.sapphire },
          -- Function = { fg = colors.mauve },
        },
      })

      vim.api.nvim_command("colorscheme catppuccin")
    end,
  },
}
