slides.nvim/README.md
2023-12-31 12:26:55 +03:00

55 lines
902 B
Markdown

# slides.nvim
[Slides](https://github.com/maaslalani/slides) presentation in your Neovim.
![image](https://user-images.githubusercontent.com/16160544/135359624-a4772255-0fe7-4c3d-ba94-faa79ef66bce.png)
## Prerequisites
- `Neovim >= 0.5.0`
- [`Slides`](https://github.com/maaslalani/slides)
## Installation
### [packer.nvim](https://github.com/wbthomason/packer.nvim)
```lua
use {
'notashelf/slides.nvim',
config = function ()
require'slides'.setup{}
end
}
```
## Configuration
```lua
-- default config
require'slides'.setup{
bin = 'slides' -- path to binary
fullscreen = true -- open in fullscreen
}
```
## Usage
Open current file
```console
:Slides
```
```console
: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