Closed Th3Whit3Wolf closed 4 years ago
Does the let g:startify_custom_header = ...
line come before the call minpac#add('mhinz/vim-startify')
line in your vimrc?
That's the only way I can reproduce this. Otherwise your config works for me as-is.
When you put :echomsg join(split(&rtp, ','), "\n")
in before the let g:startify_custom_header = ...
line and start Vim, you should see a lot of runtime paths which should contain the path to the startify plugin. Otherwise autoload functions won't be found.
Vim-startify config is at the end of my config. I'm not sure if that would be a factor with minpac since vim is the one that ends up loading the plugin.
Putting it before that line I don't see vim-startify. Running it during runtime I do. Could this be related to splitting up my packages vim-startify config in different files?
It's strange because when I run neovim I get the errors but after pressing enter I get the cowsay quote version of startify with all of my bookmarks, lists, and everything else. So it seems like neovim is loading all of vim-startify minus the startify/fortune.vim
Yeah, it's most probably a sourcing order issue. As I said, when the path to the vim-startify folder is missing from :echo &rtp
, then calling startify#fortune#...()
will throw an error.
But you could try this:
s:vegeta
to g:vegeta
Use a string for g:startify_custom_header
:
let g:startify_custom_header = 'startify#pad(g:vegeta + startify#fortune#boxed())'
This way the actual functions won't get used until Startify is actually executed.
If there were Yelp Reviews for vim plugin authors you sir, would have 5 stars.
That fixed it. Thank you!
Hah, thanks. I'm glad it's working now!
let g:startify_custom_header = 'startify#pad(split(system("figlet -w 100 VIM2020"), "\n"))'
quote all the function strings just works fine.
I get an error using startify#fortune#boxed
Here is my config
Relevant information Neovim Version: v0.4.3 Plugin Manager: minpac / native
When I replace
with
it works as expected.