A Neovim plugin that displays TypeScript types as inline virtual text using twoslash query syntax.
twoslash-queries.nvim is a Neovim plugin written in Lua that integrates twoslash query support for TypeScript projects. It enables developers to view complex TypeScript types directly in their editor as virtual text, updating dynamically without needing to hover over variables.
Neovim users who work with TypeScript and want immediate, inline type feedback directly in their editor, particularly those dealing with complex type systems.
It provides unobtrusive, real-time type inspection that updates as code changes, reducing reliance on external tools or manual hovering, and is inspired by the popular VSCode extension vscode-twoslash-queries.
Nvim lua plugin which adds support for twoslash queries into typescript projects
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Shows TypeScript types directly next to variables using the // ^? syntax, as shown in the README with examples like const variableToInspect = ... // ^?.
Updates type information instantly as code changes without cursor movement, enabling real-time feedback during development, as highlighted in the GIF demonstration.
Allows types to be displayed across multiple lines for better readability, configurable via the multi_line option in the setup function.
Provides custom commands like TwoslashQueriesEnable/Disable and TwoslashQueriesInspect for flexible control over type inspection, detailed in the Usage section.
Exclusively works in Neovim, excluding users of other editors, which restricts its accessibility compared to cross-platform tools.
Requires writing // ^? comments in the code, which can be intrusive and adds extra steps compared to automatic type hints in IDEs.
Depends on tsserver being properly configured via LSP, as noted in the installation steps, adding setup overhead for users unfamiliar with Neovim's LSP ecosystem.