guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: vim: Adjust autodetected plugin directories.


From: guix-commits
Subject: 01/02: gnu: vim: Adjust autodetected plugin directories.
Date: Wed, 16 Feb 2022 03:00:00 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit e358706058cd297044deac4c5f4879389bd7a524
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Feb 16 09:57:40 2022 +0200

    gnu: vim: Adjust autodetected plugin directories.
    
    * gnu/packages/aux-files/guix.vim: Autodetect plugins installed with
    guix-home. Add */after directories at the end of the runtimepath.
---
 gnu/packages/aux-files/guix.vim | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/aux-files/guix.vim b/gnu/packages/aux-files/guix.vim
index 7dc359e52b..9397c53701 100644
--- a/gnu/packages/aux-files/guix.vim
+++ b/gnu/packages/aux-files/guix.vim
@@ -1,7 +1,13 @@
 " This appends all of the vim plugins to the end of Vim's runtimepath.
-for directory in ["/run/current-system/profile", $HOME . "/.guix-profile", 
$GUIX_PROFILE, $GUIX_ENVIRONMENT]
+for directory in ["/run/current-system/profile", $HOME . "/.guix-profile", 
$HOME ."/.guix-home/profile", $GUIX_PROFILE, $GUIX_ENVIRONMENT]
     let vimplugins = directory . "/share/vim/vimfiles"
     if isdirectory(vimplugins)
         let &rtp = join([&rtp,vimplugins], ',')
     endif
 endfor
+" Unconditionally add */after directories last, as intended by upstream
+" TODO: Remove duplicate */after directories
+for directory in [$VIM . "/vimfiles", $HOME ."/.vim"]
+    let vimplugins = directory . "/after"
+    let &rtp = join([&rtp,vimplugins], ',')
+endfor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]