Skip to content

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

License

Notifications You must be signed in to change notification settings

ryoppippi/nvim-pnpm-catalog-lens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PNPM Catalog Lens Neovim

Show versions as diagnostics for PNPM catalog: field.

Screenshot before Screenshot after

Install

Using lazy.nvim:

---@type LazySpec
return {
  'https://github.com/ryoppippi/nvim-pnpm-catalog-lens',
   lazy = false -- designed to be lazy loaded
}

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:

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

Inspired by

License

MIT

About

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages