Home

Awesome

brew.nvim

TODO: Build Status

brew.nvim is a Neovim plugin manager, rewrite dein with neovim builtin lua.

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Requirements

Quick start

Note: You must define the installation directory before to use. The directory that you will want to use depends on your usage.

For example, ~/.vim/bundles or ~/.cache/brew or ~/.local/share/brew. brew.vim does not define a default installation directory. You must not set the installation directory as ~/.vim/plugin or ~/.config/nvim/plugin.

Unix/Linux or Mac OS X

  1. Run below script.
curl https://raw.githubusercontent.com/zgpio/brew.nvim/master/bin/installer.sh > installer.sh
# For example, we just use `~/.cache/brew` as installation directory
sh ./installer.sh ~/.cache/brew
  1. Edit your .vimrc like this.
" Add the brew installation directory into runtimepath
set runtimepath+=~/.cache/brew/repos/github.com/zgpio/brew.nvim

if brew#load_state('~/.cache/brew')
  call brew#begin('~/.cache/brew')

  call brew#add('~/.cache/brew/repos/github.com/zgpio/brew.nvim')

  call brew#end()
  call brew#save_state()
endif

filetype plugin indent on
syntax enable
  1. Open nvim and install brew
:lua dein.install()

Features

Future works (TODO)

Options

Some common options. For a more detailed list, run :h brew-options

OptionTypeDescription
namestringThe name for a plugin. If it is omitted, the tail of the repository name will be used
revstringThe revision number or branch/tag name for the repo
buildstringCommand to run after the plugin is installed
on_ftstring or listLoad a plugin for the current filetype
on_cmdstring or listLoad the plugin for these commands
rtpstringYou can use this option when the repository has the Vim plugin in a subdirectory
ifstring or numberIf it is String, brew.nvim will eval it.
mergednumberIf set to 0, brew.nvim doesn't merge the plugin directory.