liuchengxu / space-vim

:four_leaf_clover: Lean & mean spacemacs-ish Vim distribution
https://liuchengxu.github.io/space-vim/
MIT License
2.85k stars 255 forks source link

Speedup, only run helptags core/doc when necessary #487

Closed rene-descartes2021 closed 2 years ago

rene-descartes2021 commented 2 years ago

Allows for faster launch.

Stores the last modified time of core/doc/spacevim.txt in a file named .spacevim_lastprocessed. When spacevim.txt is updated, the logic will re-run helptags and update .spacevim_lastprocessed.

Faster than running helptags to regenerate the core/doc/tags file each launch, which is a slow operation on my ext4 filesystem on a flashdrive. In addition this is a source of error messages when sandboxing (making ~/.vim readonly).

liuchengxu commented 2 years ago

This patch probably fixes CI.

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7f814e8..925d810 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -13,7 +13,7 @@ jobs:
     - name: Checkout
       uses: actions/checkout@master
     - name: Run vint with reviewdog
-      uses: reviewdog/action-vint@v1.0.1
+      uses: reviewdog/action-vint@v1
       with:
         github_token: ${{ secrets.github_token }}
         reporter: github-pr-review
liuchengxu commented 2 years ago

Merged, thank you!