diff --git a/pkgs/applications/editors/vim/plugins/non-generated/vectorcode-nvim/default.nix b/pkgs/applications/editors/vim/plugins/non-generated/vectorcode-nvim/default.nix new file mode 100644 index 000000000000..ac8e52fdfbbc --- /dev/null +++ b/pkgs/applications/editors/vim/plugins/non-generated/vectorcode-nvim/default.nix @@ -0,0 +1,36 @@ +{ + lib, + vimUtils, + vectorcode, + vimPlugins, +}: +let + inherit (vectorcode) src version; +in +vimUtils.buildVimPlugin { + inherit src version; + + pname = "vectorcode.nvim"; + + # nixpkgs-update: no auto update + # This is built from the same source as vectorcode and will rebuild automatically + + sourceRoot = "${src.name}/plugin"; + + dependencies = [ + vimPlugins.plenary-nvim + ]; + + buildInputs = [ vectorcode ]; + + postPatch = '' + cp -r ../lua . + ''; + + meta = { + description = "Index and navigate your code repository using vectorcode"; + homepage = "https://github.com/Davidyz/VectorCode/blob/main/docs/neovim.md"; + inherit (vectorcode.meta) changelog license; + maintainers = with lib.maintainers; [ sarahec ]; + }; +}