fix: disable autocmd when buf is closed

This commit is contained in:
amrbashir
2022-05-15 10:28:13 +02:00
parent 4d491dc47f
commit 66cb6a423f
2 changed files with 39 additions and 35 deletions

View File

@@ -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