goolord/alpha-nvim

[feature] padding between components

Closed this issue · 1 comments

i will like to dont repeat the margin between all the components i the layout of alpha so if a have

		layout = {
			header,
			{ type = 'padding', val = 1 },
			header_welcome,
			{ type = 'padding', val = 1 },
			title('Quick links', 16),
			{ type = 'padding', val = 1 },
			shortcuts,
			{ type = 'padding', val = 1 },
			title('Project', 11),
			{ type = 'padding', val = 1 },
			projects,
			{ type = 'padding', val = 1 },
			fortune,
			{ type = 'padding', val = 1 },
			github,
		},

i always repeat the padding, even if i make a function is the same so my idea is to have a global option in opts that allow to have padding between elements like this

    layout = {
        header,
        header_welcome,
        title('Quick links', 16),
        shortcuts,
        title('Project', 11),
        projects,
        fortune,
        github,
    },
    opts = {
        padding = 1
    }

it is like margin property but this is in elements