mirror of
https://github.com/NotAShelf/slides.nvim.git
synced 2025-02-22 11:28:04 +00:00
54 lines
902 B
Markdown
54 lines
902 B
Markdown
# slides.nvim
|
|
|
|
[Slides](https://github.com/maaslalani/slides) presentation in your Neovim.
|
|
|
|

|
|
|
|
## 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
|