mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-29 07:42:23 -05:00
b17567d45c
This is neccesary because vim's built-in plugin manager looks for directories under 'package-path' instead of 'runtime-path.' Once we have told vim the package-path, it adds all the packages to the runtime-path automatically for us. * gnu/packages/aux-files/guix.vim: Add paths to packagepath instead of runtimepath. Remove code to adjust runtimepath after adding paths. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
8 lines
439 B
VimL
8 lines
439 B
VimL
" This appends all applicable vim paths to the end of packagepath. Once we
|
|
" have told vim the packagepath vim will add it to the runtimepath for us.
|
|
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 &pp = join([&pp,vimplugins], ',')
|
|
endif
|
|
endfor
|