A lightweight Neovim plugin that formats and enhances LSP hover information for better readability.
pretty_hover is a Neovim plugin that enhances the display of hover information from Language Server Protocol (LSP) servers. It parses and reformats raw documentation—such as function signatures, parameters, and comments—into a cleaner, more readable markdown-style popup. It also includes features like automatic number conversion and configurable syntax highlighting for code blocks.
Neovim users who work with LSP-enabled languages and want improved readability of inline documentation, especially developers dealing with complex APIs or detailed code comments.
It offers a lightweight, customizable alternative to Neovim's default hover window, with better visual organization, number conversion utilities, and easy integration into existing workflows via a simple Lua API.
A small and customizable Neovim plugin for pretty printing the hover information from LSP servers
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Allows defining detectors and stylers for patterns like headers, lists, and parameters, enabling tailored hover displays as shown in the configuration table.
Converts numbers to hex, octal, or binary within hover text, saving time for developers dealing with numeric representations, a unique feature highlighted in the README.
Supports syntax-highlighted code blocks via @code{language} tags, improving readability of embedded snippets, with fallback to current filetype if unspecified.
Provides a parser module for custom hover implementations and integrates with blink.cmp for enhanced completion documentation, as detailed in the Integration section.
Bound by Neovim's markdown renderer which only supports basic stylers like backticks and asterisks, with no combination possible, as admitted in the Limitations section.
Requires users to create keymaps to invoke hover() and configure multiple options in Lua, adding initial setup overhead, noted in the Configuration note.
Involves nested tables and various parameters (e.g., for headers, groups, highlight), which can be overwhelming for those not versed in Lua or detailed plugin tuning.