fix: remove trailing '/.' from vim-plug plugin paths

For some reason vim-plug doesn't seem to like that. This fixes it so
that it can properly load the plugins.

authored by anirudhb and committed by Matthieu Coudron d9d1a11a 483b311b

+3 -1
+3 -1
pkgs/misc/vim-plugins/vim-utils.nix
··· 292 292 293 293 /* vim-plug is an extremely popular vim plugin manager. 294 294 */ 295 + /* Remove repeated "/." suffixes from a path */ 296 + stripDots = path: lib.head (builtins.split "(/\\.)*$" path); 295 297 plugImpl = 296 298 ('' 297 299 source ${vimPlugins.vim-plug.rtp}/plug.vim 298 300 silent! call plug#begin('/dev/null') 299 301 300 - '' + (lib.concatMapStringsSep "\n" (pkg: "Plug '${pkg.rtp}'") plug.plugins) + '' 302 + '' + (lib.concatMapStringsSep "\n" (pkg: "Plug '${stripDots pkg.rtp}'") plug.plugins) + '' 301 303 302 304 call plug#end() 303 305 '');