mirror of
https://github.com/tiyn/nvim-docs-view.git
synced 2025-11-13 05:49:45 +01:00
fix: disable autocmd when buf is closed
This commit is contained in:
28
README.md
28
README.md
@@ -5,19 +5,6 @@ A neovim plugin to display lsp hover documentation in a side panel.
|
||||
|
||||
## 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 = 30,
|
||||
}
|
||||
EOF
|
||||
```
|
||||
|
||||
Using [packer.nvim](https://github.com/wbthomason/packer.nvim)
|
||||
|
||||
```lua
|
||||
@@ -28,12 +15,25 @@ use {
|
||||
config = function()
|
||||
require("docs-view").setup {
|
||||
position = "right",
|
||||
width = 30,
|
||||
width = vim.api.nvim_get_option("columns") / 3,
|
||||
}
|
||||
end
|
||||
}
|
||||
```
|
||||
|
||||
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 = vim.api.nvim_get_option("columns") / 3,
|
||||
}
|
||||
EOF
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Use `:DocsViewToggle` to open/close the docs view side panel
|
||||
|
||||
Reference in New Issue
Block a user