nemanjamalesija

Progressively expand TypeScript types inside hover floats.

35
1
100% credibility
Found Feb 25, 2026 at 19 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Lua
AI Summary

A tool for code editors that enhances type previews in TypeScript by letting users expand and collapse details progressively in a floating information box.

How It Works

1
💻 Work on TypeScript code

You're editing TypeScript code in your favorite code editor and want to understand complex types better when hovering.

2
🔍 Find the helpful tool

You discover a simple addition that makes type previews expandable, so you can dig deeper without frustration.

3
📥 Add it to your editor

Follow easy instructions to include the tool in your editor setup, picking simple keys like K to peek.

4
Peek at a type

Place your cursor on code, press K, and a neat floating box appears showing the type with clear formatting and notes.

5
Unfold more details

Press + inside the box to reveal the next layer of the type, step by step, until you see everything.

6
Fold back if needed

Press - to collapse a level and simplify the view, keeping control over the details.

Close and code confidently

Press q or escape to dismiss the box, now fully understanding the code and ready to build more.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 19 to 35 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is ts-expand-hover.nvim?

This Lua plugin for Neovim lets you progressively expand TypeScript types inside hover floats, starting collapsed and drilling down level by level with + and -. It solves the pain of opaque type aliases in standard LSP hovers by leveraging TypeScript 5.9's verbosity controls via vtsls, showing syntax-highlighted code, JSDoc, and docs without closing the float.

Why is it gaining traction?

Unlike basic hover.nvim setups, it updates floats in-place for seamless expand/collapse, adds Treesitter highlighting inside TypeScript fences, and renders param/returns examples—making type inspection feel progressively expanding and interactive. Configurable keymaps avoid conflicts, plus health checks and fallbacks to vim.lsp.buf.hover keep it reliable. Developers dig the footer showing depth and actions, turning hovers into explorable type maps.

Who should use this?

Neovim users heavy into TypeScript or TSX files with vtsls, like frontend devs debugging complex generics or fullstack folks tracing API types. Skip if you're on older TypeScript or prefer VS Code's type peeks—it's tailored for buffer-local K hovers in large TS projects.

Verdict

Worth adding if you hit Neovim 0.10+, vtsls, and TS 5.9—solid docs, tests, and polish punch above its 17 stars and 1.0% credibility score. Still early; test in a side config before mainlining.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.