Closed Th3Whit3Wolf closed 4 years ago
The parameter for the 'do' item should be a Vim's Ex command, not an external command.
To execute an external command, insert an !
before the command. However, this shows a prompt when the command finishes. To suppress the prompt, you can use silent!
So, how about this? {'do': 'silent! !(cd app && ./install.sh)'}
Another way is using system()
function: {'do': 'call system("cd app && ./install.sh")'}
This doesn't display the output of the external command at all.
That works! Thank you so much!!
I am trying to install markdown preview nvim
What I've tried
It always says it's installed but I keep having to go into
start/markdown-preview.nvim/app
and run./install.sh