A neovim plugin to display lsp hover documentation in a side panel.
Inspired by the VSCode extension Docs View.
Using packer.nvim
use {
"amrbashir/nvim-docs-view",
opt = true,
cmd = { "DocsViewToggle" },
config = function()
require("docs-view").setup {
position = "right",
width = 60,
}
end
}
Using vim-plug
Plug 'amrbashir/nvim-docs-view', { 'on': 'DocsViewToggle'}
lua << EOF
require("docs-view").setup {
position = "right",
width = 60,
}
EOF
Using lazy.nvim
{
"amrbashir/nvim-docs-view",
lazy = true,
cmd = "DocsViewToggle",
opts = {
position = "right",
width = 60
}
}
position
:string
right
right
| left
| top
| bottom
height
:top
or bottom
number
10
width
:right
or left
number
60
update_mode
:auto
, the content will update upon cursor move. If manual
, the content will only update once :DocsViewUpdate
is called.string
auto
auto
| manual
:DocsViewToggle
to open/close the docs view panel.:DocsViewUpdate
to manually update the docs view panel (will open the docs view panel if necessary).MIT © Amr Bashir