Question: How to replace `getcwd` with a public function exposed by another plugin?
This is a follow-up of a question raised in another project.
Hey! I'm new to Vim and I am trying to integrate a public function from another library by replacing getCwd specfied in startify_lists with the function defined in another plugin.
Here is what my setup is:
- Installed plugins using vim-plug
- Assigning value to
startify_listsin.config/nvim/init.vim(which I believe could be wrong)
I am struggling to integrate these two plugins. When I try to use that function NVim tells me that it cannot find it.

Here is what the code looks like:

Am I defining startify_lists in the wrong file? If yes, where can I define it instead? I am unable to understand what I'm doing wrong.
I made it work by putting assignment in after folder (which I believe I should start doing more). I'm keeping this issue open for anyone to suggest a better solution as I'm still new to all of this, thanks.