Show versions as diagnostics for PNPM catalog:
field.
Using lazy.nvim:
---@type LazySpec
return {
'https://github.com/ryoppippi/nvim-pnpm-catalog-lens',
lazy = false -- designed to be lazy loaded
}
Command | Description |
---|---|
PnpmCatalogLensEnable |
Enable the lens |
PnpmCatalogLensDisable |
Disable the lens |
You can configure the display option for the detected version using the global variable g:pnpm_catalog_display
. The available options are:
diagnostics
: Display the detected version as diagnostics (default).overlay
: Display the detected version as virtual text overlay on thecatalog:
.
Example:
vim.g.pnpm_catalog_display = "overlay"
PnpmCatalogLensOverlay
: Display the detected version as virtual text overlay on thecatalog:
. It is useful when you want to see the version without moving the cursor.
Logo is from
vscode-pnpm-catalog-lens