Neovim plugin that displays function type annotations as virtual text using the built-in LSP client.
virtual-types.nvim is a Neovim plugin that displays function type annotations as virtual text in the editor. It uses the built-in Language Server Protocol (LSP) client to fetch type information from language servers, helping developers quickly understand function signatures without interrupting their workflow. The plugin is particularly useful for statically typed languages where type annotations are critical for code comprehension.
Neovim users working with statically typed languages like OCaml, who want inline type hints without switching to external documentation or hover tools. It's ideal for developers using LSP-supported language servers.
Developers choose virtual-types.nvim for its seamless integration with Neovim's native LSP client, minimal configuration, and non-intrusive display of type annotations as virtual text. It enhances productivity by reducing context switches and providing immediate type information inline.
Neovim plugin that shows type annotations as virtual text
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Integrates seamlessly with Neovim's built-in LSP client, reducing external dependencies and ensuring smooth operation with supported servers.
Setup requires only a few lines in the LSP configuration, as shown in the README with the ocamllsp setup example.
Shows type annotations as virtual text inline, keeping the editor interface clean without disruptive popups or overlays.
Specifically designed for ocaml-lsp, providing reliable and efficient type hints for OCaml development workflows.
Only works with LSP servers that support textDocument/codeLens, which excludes many servers and can lead to inconsistent support across languages.
The README is brief and lacks detailed configuration options, troubleshooting guides, or examples for non-OCaml setups.
Focuses solely on function type annotations, missing broader features like variable type hints or integration with other Neovim UI enhancements.