diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-07-14 14:22:36 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-07-29 14:34:13 +0200 |
commit | 16394293592efc71a5dc17f771a4be1ca8910fa5 (patch) | |
tree | 4c96780da1d7f7d74ea7e928f1eb8c93cb6fe47a /pkgs/applications/editors/vim/configurable.nix | |
parent | aff0725a7d5171a99ff3baafc04b7cb2aa3722f6 (diff) | |
download | nixlib-16394293592efc71a5dc17f771a4be1ca8910fa5.tar nixlib-16394293592efc71a5dc17f771a4be1ca8910fa5.tar.gz nixlib-16394293592efc71a5dc17f771a4be1ca8910fa5.tar.bz2 nixlib-16394293592efc71a5dc17f771a4be1ca8910fa5.tar.lz nixlib-16394293592efc71a5dc17f771a4be1ca8910fa5.tar.xz nixlib-16394293592efc71a5dc17f771a4be1ca8910fa5.tar.zst nixlib-16394293592efc71a5dc17f771a4be1ca8910fa5.zip |
vim_configurable: add ".../after" plugin dirs to runtimepath
This fixes using e.g. CSApprox when installed with nix.
Diffstat (limited to 'pkgs/applications/editors/vim/configurable.nix')
-rw-r--r-- | pkgs/applications/editors/vim/configurable.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/editors/vim/configurable.nix b/pkgs/applications/editors/vim/configurable.nix index 3f588fdde585..97e430fded63 100644 --- a/pkgs/applications/editors/vim/configurable.nix +++ b/pkgs/applications/editors/vim/configurable.nix @@ -24,6 +24,10 @@ let let pluginname = substitute(d, ".*/", "", "") if !has_key(seen, pluginname) exec 'set runtimepath^='.d + let after = d."/after" + if isdirectory(after) + exec 'set runtimepath^='.after + endif let seen[pluginname] = 1 endif endfor |