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.
- Host: GitHub
- URL: https://github.com/ryoppippi/nvim-pnpm-catalog-lens
- Owner: ryoppippi
- License: mit
- Created: 2024-09-14T09:06:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-25T14:02:30.000Z (over 1 year ago)
- Last Synced: 2025-02-08T01:51:41.866Z (over 1 year ago)
- Topics: lua, neovim, neovim-plugin, nvim, pnpm, pnpm-workspace
- Language: Lua
- Homepage:
- Size: 987 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PNPM Catalog Lens Neovim
Show versions as diagnostics for PNPM catalog: field.
## 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)