A Neovim plugin designed to enhance the Language Server Protocol (LSP) experience by providing hover information in a split window. With this plugin, it is possible to quickly access additional context, documentation, or information related to code symbols directly within Neovim without disrupting your workflow.
- Hover Information: Get detailed hover information about symbols, functions, types, and more in a separate split window.
- Auto Update: The content automatically updates as the cursor moves to new targets.
- Toggle Splits: Easily toggle the split window open and closed using configurable key bindings.
Install hoversplit.nvim using any preferred plugin manager. LazyVim Example:
{
"roobert/hoversplit.nvim",
config = function()
require("hoversplit").setup({
autoupdate = false,
-- close when cursor leave current window
autoclose = true,
max_size = 0.3,
-- :h nvim_open_win()
winconfig = {
split = 'below',
height = 15,
},
})
end
}
Configure key bindings for different functionalities. Example configuration:
{
"roobert/hoversplit.nvim",
config = function()
vim.keymap.set('n', '<leader>h', function() require('hoversplit').toggle() end)
end,
}
- show
- close
- toggle