mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-09 15:06:38 -05:00
Fix helptag generation when the vimrc isnt loaded at startup
This commit is contained in:
parent
49a195bcf7
commit
26a209f4f5
1 changed files with 2 additions and 2 deletions
4
update
4
update
|
@ -244,13 +244,13 @@ fi
|
||||||
### BEGIN: GENERATE PLUGIN HELPTAGS ###
|
### BEGIN: GENERATE PLUGIN HELPTAGS ###
|
||||||
if [ $(type -P vim) ]; then
|
if [ $(type -P vim) ]; then
|
||||||
echo -n -e "${HEADINGCOLOUR} >> Generating Plugin Help:${RESETCOLOUR}"
|
echo -n -e "${HEADINGCOLOUR} >> Generating Plugin Help:${RESETCOLOUR}"
|
||||||
timeout --foreground 2m vim -c "Helptags|qa!" &> /dev/null
|
timeout --foreground 2m vim -u "${PWD}/vimrc" -c "Helptags|qa!" &> /dev/null
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
echo -e "${SUCCESSCOLOUR} SUCCESS! ${RESETCOLOUR}"
|
echo -e "${SUCCESSCOLOUR} SUCCESS! ${RESETCOLOUR}"
|
||||||
else
|
else
|
||||||
reset -I
|
reset -I
|
||||||
echo -e "${FAILCOLOUR} FAIL! ${RESETCOLOUR}"
|
echo -e "${FAILCOLOUR} FAIL! ${RESETCOLOUR}"
|
||||||
error "vim -c \"Helptags|qa!\"" "Generating helpdocs for the submodules failed"
|
error "vim -u \"${PWD}/vimrc\" -c \"Helptags|qa!\"" "Generating helpdocs for the submodules failed"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
### END: GENERATE PLUGIN HELPTAGS ###
|
### END: GENERATE PLUGIN HELPTAGS ###
|
||||||
|
|
Loading…
Reference in a new issue