mirror of
https://github.com/tiyn/nvim-docs-view.git
synced 2025-11-13 05:49:45 +01:00
feat: add setup function
This commit is contained in:
17
README.md
17
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user