From 584bc20aa051dedba29d6e7732cab2aacbf8bdcc Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Sat, 12 Jun 2021 01:08:24 +0200 Subject: [PATCH] doc: present how to create a vim-plugin overlay it is possible to maintain an out of tree list of neovim plugins with this method Update doc/languages-frameworks/vim.section.md Co-authored-by: Sandro --- doc/languages-frameworks/vim.section.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/doc/languages-frameworks/vim.section.md b/doc/languages-frameworks/vim.section.md index ec0e60389155..9062fb7d361b 100644 --- a/doc/languages-frameworks/vim.section.md +++ b/doc/languages-frameworks/vim.section.md @@ -243,10 +243,23 @@ Alternatively, set the number of processes to a lower count to avoid rate-limiti ./pkgs/applications/editors/vim/plugins/update.py --proc 1 ``` -## Important repositories {#important-repositories} +## How to maintain an out-of-tree overlay of vim plugins ? -- [vim-pi](https://bitbucket.org/vimcommunity/vim-pi) is a plugin repository - from VAM plugin manager meant to be used by others as well used by +You can use the updater script to generate basic packages out of a custom vim +plugin list: +``` +pkgs/applications/editors/vim/plugins/update.py -i vim-plugin-names -o generated.nix --no-commit +``` +with the contents of "vim-plugin-names" being for example: +``` +repo,branch,alias +pwntester/octo.nvim,, +``` + +You can then reference the generated vim plugins via: +```nix +myVimPlugins = pkgs.vimPlugins.extend ( + (pkgs.callPackage generated.nix {}) +); +``` -- [vim2nix](https://github.com/MarcWeber/vim-addon-vim2nix) which generates the - .nix code