mirror of
https://github.com/gabehf/base46.git
synced 2026-03-08 23:18:15 -07:00
Update README.md
This commit is contained in:
parent
7cbd7b2af5
commit
6dbc3c9494
1 changed files with 20 additions and 1 deletions
21
README.md
21
README.md
|
|
@ -4,9 +4,28 @@ Programmatic lua library for setting
|
|||
[base16](https://github.com/chriskempson/base16) themes in
|
||||
[Neovim](https://github.com/neovim/neovim).
|
||||
|
||||
## Demo
|
||||
|
||||
```lua
|
||||
local theme_names = base16.theme_names()
|
||||
base16_position = 1
|
||||
function cycle_theme()
|
||||
base16_position = (base16_position % #theme_names) + 1
|
||||
base16(base16.themes[theme_names[base16_position]], true)
|
||||
end
|
||||
```
|
||||
|
||||

|
||||
|
||||
## Usage
|
||||
|
||||
Basic usage:
|
||||
Install via your plugin manager. e.g.
|
||||
|
||||
```vim
|
||||
Plug "norcalli/nvim-base16.lua"
|
||||
```
|
||||
|
||||
### Basic usage
|
||||
|
||||
```lua
|
||||
lua << EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue