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

https://github.com/ryoppippi/nvim-pnpm-catalog-lens

Neovim plugin to show versions as diagnostics for pnpm catalog: field.
https://github.com/ryoppippi/nvim-pnpm-catalog-lens

lua neovim neovim-plugin nvim pnpm pnpm-workspace

Last synced: 9 months ago
JSON representation

Neovim plugin to show versions as diagnostics for pnpm catalog: field.

Awesome Lists containing this project

README

          



PNPM Catalog Lens Neovim


Show versions as diagnostics for PNPM catalog: field.


Screenshot before
Screenshot after

## Install

Using lazy.nvim:

```lua
---@type LazySpec
return {
'https://github.com/ryoppippi/nvim-pnpm-catalog-lens',
ft = { 'json' },
}
```

## Commands

| Command | Description |
| ------------------------ | ---------------- |
| `PnpmCatalogLensEnable` | Enable the lens |
| `PnpmCatalogLensDisable` | Disable the lens |

## Configuration

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 the `catalog:`.

Example:

```lua
vim.g.pnpm_catalog_display = "overlay"
```

## Heighlight

- `PnpmCatalogLensOverlay`: Display the detected version as virtual text overlay on the `catalog:`. It is useful when you want to see the version without moving the cursor.

## Credits

Logo is from
[`vscode-pnpm-catalog-lens`](https://github.com/antfu/vscode-pnpm-catalog-lens)

## Inspired by

- [vscode-pnpm-catalog-lens](https://github.com/antfu/vscode-pnpm-catalog-lens)
by [Anthony Fu](https://github.com/antfu)

## License

[MIT](./LICENSE)