Closed Zeioth closed 1 year ago
yeah i have pretty much no interest in fixing this. it's an interpreted & dynamically typed language, adding robust error checking would not only pollute the code but also come at a runtime cost. doing something bad and seeing an error message is good enough
you don't need a button, you can just use a padding element or something
It worked fine without errors using 2 arguments instead of 3 thank you.
dashboard.section.buttons.val = {
dashboard.button("n", "📄 New ", ':ene<CR>'),
dashboard.button("e", "🌺 Recent ", ':Telescope oldfiles<CR>'),
dashboard.button("r", "🐍 Ranger ", ':Ranger<CR>'),
dashboard.button("s", "🔎 Sessions", 'SessionManager! load_session<CR>'),
dashboard.button("p", "💼 Projects", ':Telescope projects<CR>'),
dashboard.button("", ""), -- <---- 2 arguments instead of 3
dashboard.button("q", " Quit", ':exit<CR>'),
}
I'm trying to create an emply button row like this
You can see the result is the expected. It leaves an emply line with no action.
The problem is this provokes an error in alpha.