require("core.options")
require("core.keymaps")

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
	local lazyrepo = "https://github.com/folke/lazy.nvim.git"
	local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
	if vim.v.shell_error ~= 0 then
		vim.api.nvim_echo({
			{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
			{ out, "WarningMsg" },
			{ "\nPress any key to exit..." },
		}, true, {})
		vim.fn.getchar()
		os.exit(1)
	end
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
	require("plugins.neotree"),
	-- require 'plugins.colortheme',
	require("plugins.colors.colortheme_catppuccin"),
	-- require 'plugins.colors.colortheme_tokyo_night',
	-- require 'plugins.colors.colortheme_gruvbox',
	-- require 'plugins.colors.colortheme_nord',
	-- require 'plugins.colors.colortheme_everfrost',
	require("plugins.docker"),
	require("plugins.bufferline"),
	require("plugins.lualine"),
	require("plugins.treesitter"),
	require("plugins.telescope"),
	require("plugins.lsp"),
	require("plugins.latex"),
	require("plugins.autocompletion"),
	require("plugins.autoformatting"),
	require("plugins.gitsigns"),
	require("plugins.alpha"),
	require("plugins.indent-backline"),
	require("plugins.misc"),
	-- require("plugins.chatGPT"),
	-- require("plugins.copilot"),
	require("plugins.lazygit"),
	require("plugins.harpoon"),
	require("plugins.comment"),
	require("plugins.debug"),
	require("plugins.none-ls"),
	require("plugins.dap-ui"),
	require("plugins.flutter.dart-syntax"),
	require("plugins.flutter.flutter-tools"),
	require("plugins.nvim-jdtls"),
})
