goolord / alpha-nvim

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

Not an Editor command #227

Closed brycepg closed 1 year ago

brycepg commented 1 year ago

require'alpha'.setup(require'alpha.themes.startify'.config)

E5113: Error while calling lua chunk: C:\Users\Z\AppData\Local\nvim\init.lua:175: C:\Users\Z\AppData\Local\nvim\init.lua..C:\Users\Z\AppData\Local\nvim/vimrc.vim, line 11: Vim:E492: Not an editor command: require'alpha'.setup(require'alpha.themes.startify'.config)

goolord commented 1 year ago

require is a lua function. read a beginners guide to configuring neovim, this issue tracker is not a help forum

brycepg commented 1 year ago

I got some time to take a look at it and make it work. Thank you for making such a nice plugin.

The README configuration for lazy.nvim has an issue with installation because opts is evaluated before the plugin is installed causing an error which stops installation in its tracks, might require a function assigned to init= or config= or to simply make the setup call after lazy.nvim is instantiated.