Skip to content

pgilad/neobundle-packages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

#Neobundle-Packages

Bringing vim packages to 2014 with the aid of NeoBundle

Goal

The goal of this project is to gather a list of jsons for installable packages in NeoBundle

Shougou has created a neobundle-vim-recipes repository which unifies NeoBundle recipes, but they are in a vim-format, and I want it to be JSON.

Also I recently read an article by Genki Sugimoto on the subject of using YAML recipes for NeoBundle. I loved this, but still want to use the common JSON format. Manage Vim Plugins the Beautiful Way using Yaml

Also - I want a format that could in the future be the database of vim plugins (similar to NPM which is my aspiration for this).

My main focus in creating JSON NeoBundle recipes is 2 things:

  1. An easy-parseable and modern format.
  2. Utilizing the lazy loading feature in NeoBundle, which is crucial when you have many installed plugins.

(I have 76 packages and that number is growing)

Notice: even though this plugin works, please be prepared for major API changes as this develops

Immediate Goals

  • Get bundle path from NeoBundle (done)
  • Add more packages to test performance

Sample ctrlp.json

{
    "name": "ctrlp",
    "lazy": true,
    "autoload": {
        "commands": ["CtrlP", "CtrlPBuffer", "CtrlPMRU", "CtrlPMixed"]
    },
    "version": "",
    "description": "",
    "license": "",
    "repository": "kien/ctrlp.vim",
    "homepage": "https://github.com/kien/ctrlp.vim",
    "bugs": "https://github.com/kien/ctrlp.vim/issues",
    "author": {
        "name": "",
        "email": ""
    },
    "engines": {
        "vim": ""
    },
    "keywords": [
        "vim",
        "search"
    ]
}

Usages

Loading a package from a known json package:

Suppose that there is a ctrlp.json file that lies in the packages/ directory. You load it via:

call neobundle_packages#parse_bundle('ctrlp')

And that will load the ctrlp.vim json package along side it's lazy loading instructions.

Future

  • A growing list of supported plugins
  • A growing conventions that a plugin list database should be created (vim.org is kinda 1999)
  • Support on the side of developers exporting their plugins using (Plug) or global commands.

License

MIT © Gilad Peleg

About

Neobundle list of packages in json format

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published