vim-startify icon indicating copy to clipboard operation
vim-startify copied to clipboard

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

Open ajitid opened this issue 5 years ago • 1 comments

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_lists in .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.

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 avatar Mar 15 '21 14:03 ajitid

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.

ajitid avatar Mar 25 '21 22:03 ajitid