require("folder-rules"):setup()

require("smart-enter"):setup({
	open_multi = true,
})

require("full-border"):setup()
require("yatline"):setup({
	--theme = my_theme,
	section_separator = { open = "", close = "" },
	part_separator = { open = "", close = "" },
	inverse_separator = { open = "", close = "" },

	style_a = {
		fg = "black",
		bg_mode = {
			normal = "green",
			select = "yellow",
			un_set = "brightred",
		},
	},
	style_b = { bg = "#141617", fg = "yellow" },
	style_c = { bg = "#1d2021", fg = "#d8a657" },

	permissions_t_fg = "green",
	permissions_r_fg = "yellow",
	permissions_w_fg = "red",
	permissions_x_fg = "cyan",
	permissions_s_fg = "white",

	tab_width = 40,
	tab_use_inverse = false,

	selected = { icon = "󰻭", fg = "yellow" },
	copied = { icon = "", fg = "green" },
	cut = { icon = "", fg = "red" },

	total = { icon = "󰮍", fg = "yellow" },
	succ = { icon = "", fg = "green" },
	fail = { icon = "", fg = "red" },
	found = { icon = "󰮕", fg = "blue" },
	processed = { icon = "󰐍", fg = "green" },

	show_background = false,

	display_header_line = true,
	display_status_line = true,

	component_positions = { "header", "tab", "status" },

	header_line = {
		left = {
			section_a = {},
			section_b = {
				{ type = "coloreds", custom = true, name = { { " 󰇥 ", "#fabd2f" } } },
				--	{ type = "string", custom = false, name = "hovered_file_extension", params = { true } },
			},
			section_c = {
				{ type = "coloreds", custom = false, name = "count" },
				--	{ type = "coloreds", custom = false, name = "task_workload" },
				-- { type = "string", custom = false, name = "hovered_name" },
				--	{ type = "string", custom = false, name = "hovered_path" },
			},
		},
		right = {
			section_a = {
				{ type = "line", custom = false, name = "tabs", params = { "left" } },
				--{ type = "string", custom = false, name = "date", params = { "%A, %d %B %Y" } },
				--		{ type = "line", custom = false, name = "tabs", params = { "right" } },
			},
			section_b = {
				--	{ type = "string", custom = false, name = "date", params = { "%X" } },
				--	{ type = "string", custom = false, name = "tab_path" },
			},
			section_c = {},
		},
	},

	status_line = {
		left = {
			section_a = {
				{ type = "string", custom = false, name = "tab_mode" },
			},
			section_b = {
				{ type = "string", custom = false, name = "hovered_size" },
			},
			section_c = {
				--	{ type = "string", custom = false, name = "hovered_path" },
				{ type = "string", custom = false, name = "hovered_path" },
			},
		},
		right = {
			section_a = {
				{ type = "string", custom = false, name = "cursor_position" },
			},
			section_b = {
				{ type = "string", custom = false, name = "cursor_percentage" },
			},
			section_c = {
				{ type = "coloreds", custom = false, name = "permissions" },
				--	{ type = "coloreds", custom = false, name = "task_states" },
			},
		},
	},
})
