[base16](https://github.com/chriskempson/base16) themes in
[Neovim](https://github.com/neovim/neovim).
## NvChad theme plugin
(Note: This theme plugin is supposed to be used along with [NvChad](https://github.com/NvChad/NvChad) only so watchout!)
## Usage
Install via your plugin manager. e.g.
```vim
Plug 'NvChad/nvim-base16.lua'
```
### Basic usage
```lua
lua <<EOF
local base16 = require 'base16'
base16(base16.themes("brewer"), true)
EOF
```
This is how I use it. Uses [`norcalli/nvim.lua`](https://github.com/norcalli/nvim.lua).
```lua
lua <<EOF
nvim = require 'nvim'
local base16 = require 'base16'
base16(base16.themes[nvim.env.BASE16_THEME or "3024"], true)
EOF
```
You can define your own themes and use them with the `base16` function as long as they match the format described below. I know the format is annoying to define, so the `base16.theme_from_array` utility function is available.
Because this includes a copy of [`norcalli/nvim.lua`](https://github.com/norcalli/nvim.lua), you should put this after `norcalli/nvim.lua` in the plugin list because lua module resolution is first-come-first-served, i.e.
```vim
Plug "norcalli/nvim.lua"
Plug "norcalli/nvim-base16.lua"
```
## Credits
Base45 theming plugin
Chris Kempson and [Base16](https://github.com/chriskempson/base16) and [base16-vim](https://github.com/chriskempson/base16-vim)