mirror of
https://github.com/tiyn/nvim-docs-view.git
synced 2025-11-13 05:49:45 +01:00
52b58fd919566291b549db815b09b7308ca0ce3a
nvim-docs-view
A neovim plugin to display lsp hover documentation in a side panel.
Inspired by the VSCode extension Docs View.
Installation
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
}
}
Options
position:- description: Determines where to open the docs view panel.
- type:
string - default:
right - possible:
right|left|top|bottom
height:- description: Height of the docs view panel when position is set to
toporbottom - type:
number - default:
10
- description: Height of the docs view panel when position is set to
width:- description: Width of the docs view panel when position is set to
rightorleft - type:
number - default:
60
- description: Width of the docs view panel when position is set to
update_mode:- description: Determines the mechanism used to update the docs view panel content. If
auto, the content will update upon cursor move. Ifmanual, the content will only update once:DocsViewUpdateis called. - type:
string - default:
auto - possible:
auto|manual
- description: Determines the mechanism used to update the docs view panel content. If
Commands
:DocsViewToggleto open/close the docs view panel.:DocsViewUpdateto manually update the docs view panel (will open the docs view panel if necessary).
LICENSE
MIT © Amr Bashir
Languages
Lua
100%