slides.nvim/README.md

55 lines
887 B
Markdown
Raw Normal View History

2021-09-29 21:36:17 +00:00
# slides.nvim
[Slides](https://github.com/maaslalani/slides) presentation in your Neovim.
2021-09-29 22:57:30 +00:00
![image](https://user-images.githubusercontent.com/16160544/135359624-a4772255-0fe7-4c3d-ba94-faa79ef66bce.png)
2021-09-29 21:36:17 +00:00
## Prerequisites
- `Neovim >= 0.5.0`
- [`Slides`](https://github.com/maaslalani/slides)
## Installation
### [packer.nvim](https://github.com/wbthomason/packer.nvim)
```lua
use {
'aspeddro/slides.nvim',
config = function ()
require'slides'.setup{}
end
}
```
## Configuration
```lua
2021-09-29 23:16:44 +00:00
-- default config
2021-09-29 21:36:17 +00:00
require'slides'.setup{
2021-09-29 23:16:44 +00:00
bin = 'slides' -- path to binary
fullscreen = true -- open in fullscreen
2021-09-29 21:36:17 +00:00
}
```
## Usage
Open current file
2021-09-29 21:36:17 +00:00
```
:Slides
```
```
:Slides [path/to/file.md]
```
Create a mapping:
```lua
-- 'n' = normal mode
vim.api.nvim_set_keymap('n', "<leader>s", ":Slides<CR>", {silent = true, noremap = true})
```
use `q` or `ctrl + c` to close slide