goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.84k stars 109 forks source link

refactor: rename theme.opts to theme.config #82

Closed kylo252 closed 2 years ago

kylo252 commented 2 years ago

Related #80

kylo252 commented 2 years ago

@goolord, I thought it would be good to have a side-by-side comparison, so you can have a clearer image of pros and cons of each approach. I also wanted to show you how to utilize vim.validate.

goolord commented 2 years ago

yeah i like this, seems like it indeed doesn't break things. part of the my plan was basically

return setmetatable(dashboard, {__index = function(t,k) --[[warn about deprecations here--]] return t[k]})

but actually lua seemingly doesn't let you mess with modules' metatables! so that's pretty sad