sgur / minpac-toml

minpac-loader: Json and Toml loader for minpac

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minpac-toml: Install a series of vim packages using minpac

Description

minpac-toml imports packages from a toml file and calls minpac#add() for each entries. And also call minpac#install() when the -update command specified.

Requirement

Usage

Commands

Execute MinpacToml {-update,-clean} <filename> where filename is a toml file.

MinpacToml command with !(bang) restarts Vim after update. It use restart.vim.

Install

Locate under the package directoy:

  • ~/.vim/pack/default/start/minpac-toml
  • ~/.vim/pack/default/opt/minpac-toml and execute packadd minpac-toml

TOML Format

[[plugins]]
url = "tpope/vim-repeat"

[[plugins]]
url = "mattn/webapi-vim"

# Install to "opt" dir
[[plugins]]
url = "noahfrederick/vim-hemisu"
type = "opt"

# Install to "opt/dracula-vim"
[[plugins]]
url = "dracula/vim"
name = "dracula-vim"
type = "opt"

# Development repo ('wip' branch and no-shallow)
[[plugins]]
url = "sgur/chbuf.vim"
branch = "wip"
depth = 9999

JSON Format

There are two formats for JSON.

Standard

{
    "plugins": [
        "tpope/vim-repeat",
        "mattn/webapi-vim",
        {"url": "noahfrederick/vim-hemisu", "type": "opt"},
        {"url": "dracula/vim", "type": "opt", "name": "dracula-vim"},
        {"url": "sgur/chbuf.vim", "branch": "wip", "depth": 9999}
    ]
}

Classified by folders

{
    "start": [
        "tpope/vim-repeat",
        "mattn/webapi-vim",
        {"url": "sgur/chbuf.vim", "branch": "wip", "depth": 9999}
    ],
    "opt": [
        "noahfrederick/vim-hemisu",
        {"url": "dracula/vim", "name": "dracula-vim"}
    ]
}

License

MIT License

Author

sgur

About

minpac-loader: Json and Toml loader for minpac

License:MIT License


Languages

Language:Vim Script 100.0%