diff options
author | tv <tv@krebsco.de> | 2016-02-07 07:47:29 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-07 07:47:29 +0100 |
commit | 478e8dce99d6917eb8829cec1151035ea4c050c6 (patch) | |
tree | 02ad3f2d0ecba163035dcc1f9541c5958119c901 /tv/2configs | |
parent | d8c27e39ff5c938955d2f9b098fc0c01ab650f6f (diff) |
tv vim: add file-line plugin
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/vim.nix | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 23f90af..9f702cd 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -13,9 +13,21 @@ let environment.variables.VIMINIT = ":so /etc/vimrc"; }; - extra-runtimepath = concatStringsSep "," [ - "${pkgs.vimPlugins.undotree}/share/vim-plugins/undotree" - ]; + extra-runtimepath = let + inherit (pkgs.vimUtils) buildVimPlugin rtpPath; + fromVimPlugins = pkgs: concatStringsSep "," + (mapAttrsToList (name: pkg: "${pkg}/${rtpPath}/${name}") pkgs); + in fromVimPlugins { + inherit (pkgs.vimPlugins) undotree; + file-line = buildVimPlugin { + name = "file-line-1.0"; + src = pkgs.fetchgit { + url = git://github.com/bogado/file-line; + rev = "refs/tags/1.0"; + sha256 = "0z47zq9rqh06ny0q8lpcdsraf3lyzn9xvb59nywnarf3nxrk6hx0"; + }; + }; + }; dirs = { backupdir = "$HOME/.cache/vim/backup"; |