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 {
|
2023-12-31 09:26:55 +00:00
|
|
|
'notashelf/slides.nvim',
|
2021-09-29 21:36:17 +00:00
|
|
|
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
|
|
|
|
|
2021-09-29 21:45:56 +00:00
|
|
|
Open current file
|
2021-09-29 21:36:17 +00:00
|
|
|
|
2023-12-31 09:26:55 +00:00
|
|
|
```console
|
2021-09-29 21:36:17 +00:00
|
|
|
:Slides
|
|
|
|
```
|
|
|
|
|
2023-12-31 09:26:55 +00:00
|
|
|
```console
|
2021-09-29 21:36:17 +00:00
|
|
|
: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})
|
|
|
|
```
|
|
|
|
|
2021-09-29 21:45:56 +00:00
|
|
|
use `q` or `ctrl + c` to close slide
|