local M = {}

function M.setup()
	vim.g.camelsnek_i_am_an_old_fart_with_no_sense_of_humour_or_internet_culture = 1
	vim.g.closetag_filenames = "*.html,*.xhtml,*.phtml,*.erb"
	vim.g.multi_cursor_use_default_mapping = 0
	vim.g.yoinkSavePersistently = 1
	vim.g.yoinkIncludeDeleteOperations = 1
	vim.g.yoinkMaxItems = 20
	vim.g.ruby_debugger = "byebug"
	vim.g.last_term_command = {}
	vim.g.any_jump_disable_default_keybindings = 1
	vim.g.ruby_refactoring_map_keys = 0
	vim.g["test#strategy"] = "mood-term"
	vim.g.dashboard_default_executive = "telescope"
	vim.g.table_mode_disable_tableize_mappings = 1
	vim.g.table_mode_disable_mappings = 1
	vim.g.send_disable_mapping = 1
	vim.g.folder_to_ignore = { ".*.git/.*", "node_modules/.*" }
	vim.g["test#runner_commands"] = { "RSpec" }
	vim.g.choosewin_overlay_enable = 1

	local host = string.gsub(vim.fn.system("which python3"), "\n", "")

	if string.match(host, "not found") then
		host = string.gsub(vim.fn.system("which python"), "\n", "")
	end

	vim.g.python3_host_prog = host

	local neovim_file_path = vim.fn.stdpath("config")

	local full_command = "--require="
		.. neovim_file_path
		.. "/helpers/vim_formatter.rb --format VimFormatter --out /tmp/quickfix.out --format progress"

	vim.cmd("let test#ruby#rspec#options = { 'file': '" .. full_command .. "', 'nearest': '" .. full_command .. "' }")

	vim.cmd("let g:test#custom_strategies = {'mood-term': function('TermStrategy')}")
end

M.setup()

return M
