feat: add setup function

This commit is contained in:
amrbashir
2022-05-13 21:00:25 +02:00
parent f49bcc50f0
commit f5768fa866
3 changed files with 52 additions and 28 deletions

View File

@@ -9,12 +9,27 @@ Using [vim-plug](https://github.com/junegunn/vim-plug)
```viml
Plug 'amrbashir/nvim-docs-view'
lua << EOF
require("docs-view").setup {
position = "right",
width = 300,
}
EOF
```
Using [packer.nvim](https://github.com/wbthomason/packer.nvim)
```lua
use { 'amrbashir/nvim-docs-view' }
use {
"amrbashir/nvim-docs-view",
config = function()
require("docs-view").setup {
position = "right",
width = 300,
}
end
}
```
## Usage