A VSCode-like peek preview window for Neovim that lets you preview, navigate, and edit LSP locations without leaving your context.
Glance.nvim is a Neovim plugin that provides a sleek preview window for Language Server Protocol (LSP) locations. It enables developers to quickly inspect definitions, references, implementations, and type definitions directly within their editor, maintaining workflow continuity and reducing context switching. It offers VSCode-like peek preview functionality for LSP-provided code locations.
Neovim users who have a properly configured LSP client and want to preview LSP locations without leaving their current editing context. It is particularly suited for developers seeking a minimal, intuitive interface for navigating code definitions and references.
Developers choose Glance.nvim for its seamless LSP integration with full editing capabilities within the preview window, adaptive UI that automatically matches the Neovim colorscheme, and minimal configuration requirements. Its unique selling point is providing a sleek, in-place preview experience that reduces context switching compared to alternatives that may open separate windows or lists.
Peek preview window for LSP locations in Neovim
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Directly leverages Neovim's LSP client to preview definitions, references, and more with minimal setup, as shown in the default keybindings for commands like 'Glance definitions'.
Allows full editing within the preview window, reducing context switching by letting developers modify code before jumping to the location.
Automatically adjusts highlighting to match the current colorscheme via the 'theme' configuration, ensuring visual consistency without manual tweaks.
Provides lifecycle hooks like 'before_open' to customize behavior, such as skipping the preview for single results, enhancing flexibility for advanced users.
Focuses only on LSP location previews (definitions, references, etc.), lacking built-in support for other LSP features like diagnostics or code actions, which may require additional plugins.
Features like 'preserve_win_context' require Neovim >= 0.10.0, and the detached option can be fiddly in multi-window setups, potentially leading to UI inconsistencies.
Requires a properly configured LSP client to function; if LSP is misconfigured or unsupported for a language, Glance provides no fallback, adding setup overhead.