An open API service indexing awesome lists of open source software.

https://github.com/nvimdev/visualizer.nvim


https://github.com/nvimdev/visualizer.nvim

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# LSP Call Chain Visualizer

A Neovim plugin that provides interactive 3D visualization of LSP call hierarchies using Three.js.



[show case video on youtube](https://www.youtube.com/watch?v=1Vwt1EnWiwo)

## Features

- 🎯 **Interactive 3D Visualization** - Navigate call hierarchies in an intuitive 3D space
- 🔍 **Precise Navigation** - Click nodes to open files at exact line:column positions
- 📍 **Location Display** - Shows `filename:line:column` for each function
- 🎨 **Visual Feedback** - Different shapes and colors for different node types
- 📝 **Visit Tracking** - Visited nodes turn gold to track exploration progress
- ⚡ **Real-time Physics** - Dynamic force-directed layout with adjustable parameters

## Usage

1. Place cursor on a function
2. Use one of the commands:
- `Visualizer incoming` - Show functions that call this one
- `Visualizer outgoing` - Show functions this one call
- `Visualizer full` - Show both incoming and outgoing calls
- `Visualizer workspace_symbol` - Show lsp workspace symbol

3. In the 3D visualization:
- **Click nodes** to open files in Neovim
- **Drag** to rotate camera
- **Scroll** to zoom
- **Toggle physics** to pause/resume animation
- **Clear visited** to reset visit tracking

## License

MIT