mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.3k stars 186 forks source link

Question: How to replace `getcwd` with a public function exposed by another plugin? #469

Open ajitid opened 3 years ago

ajitid commented 3 years ago

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:

I am struggling to integrate these two plugins. When I try to use that function NVim tells me that it cannot find it.

image

Here is what the code looks like:

image

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.

ajitid commented 3 years ago

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.