mirror of
https://github.com/tiyn/nvim-docs-view.git
synced 2025-11-13 13:59:46 +01:00
44 lines
873 B
Markdown
44 lines
873 B
Markdown
# nvim-docs-view
|
|
|
|
A neovim plugin to display lsp hover documentation in a side panel.
|
|
> Inspired by the VSCode extension [Docs View](https://marketplace.visualstudio.com/items?itemName=bierner.docs-view).
|
|
|
|
## Installation
|
|
|
|
Using [vim-plug](https://github.com/junegunn/vim-plug)
|
|
|
|
```viml
|
|
Plug 'amrbashir/nvim-docs-view', { 'on': 'DocsViewToggle'}
|
|
|
|
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",
|
|
opt = true,
|
|
cmd = { "DocsViewToggle" },
|
|
config = function()
|
|
require("docs-view").setup {
|
|
position = "right",
|
|
width = 300,
|
|
}
|
|
end
|
|
}
|
|
```
|
|
|
|
## Usage
|
|
|
|
Use `:DocsViewToggle` to open/close the docs view side panel
|
|
|
|
## LICENSE
|
|
|
|
[MIT](./LICENSE) License © 2021 [Amr Bashir](https://github.com/amrbashir)
|