Show inlay version and go-to-definition for PNPM/Yarn/Bun catalogs.
- Show inline version information for package catalogs
- Go-to-definition support for catalog entries
- Works with PNPM, Yarn, and Bun catalogs
- Neovim >= 0.10.0
Using lazy.nvim:
{
"Daydreamer-riri/catalog-lens.nvim",
opts = {},
}catalog-lens.nvim comes with the following defaults:
{
-- Enable the plugin
enabled = true,
-- Control whether to use color in nvim_buf_set_extmark
namedCatalogsColors = true,
-- Control whether to use custom rendering for hint
useOriginalInlayHint = false,
}The plugin will automatically detect package catalogs and show inline version information.
You can use the following Lua functions to control the plugin:
require("catalog-lens").enable(): Enable the plugin and LSP.require("catalog-lens").disable(): Disable the plugin and LSP.require("catalog-lens").toggle(): Toggle the plugin state.
Inspired by vscode-pnpm-catalog-lens by Anthony Fu
