Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return section_mru in theta theme and cut short_fn if it is too long #305

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

yuukibarns
Copy link

Return section_mru in theta theme so that people can configure layout like this:

config = function()
	local theta = require("alpha.themes.theta")
	theta.header.val = require("alpha.fortune")
	theta.config.layout = {
		{ type = "padding", val = 2 },
		theta.header,
		{ type = "padding", val = 2 },
		theta.section_mru,
		{ type = "padding", val = 2 },
	}
	require("alpha").setup(theta.config)
end,

i.e., remove buttons. Note that we can't access theta.section_mru if not return it.

@yuukibarns yuukibarns changed the title return section_mru in theta theme return section_mru in theta theme and cut short_fn if it is too long Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant