{"id":50857942,"url":"https://github.com/martin-ro/composer-version.nvim","last_synced_at":"2026-06-14T19:32:10.315Z","repository":{"id":363986080,"uuid":"1265861103","full_name":"martin-ro/composer-version.nvim","owner":"martin-ro","description":"Show installed Composer package versions as virtual text in composer.json","archived":false,"fork":false,"pushed_at":"2026-06-11T06:43:26.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-11T08:15:48.940Z","etag":null,"topics":["composer","lua","neovim","neovim-plugin","php"],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/martin-ro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-11T06:22:12.000Z","updated_at":"2026-06-11T06:43:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/martin-ro/composer-version.nvim","commit_stats":null,"previous_names":["martin-ro/composer-version.nvim"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/martin-ro/composer-version.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martin-ro%2Fcomposer-version.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martin-ro%2Fcomposer-version.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martin-ro%2Fcomposer-version.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martin-ro%2Fcomposer-version.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martin-ro","download_url":"https://codeload.github.com/martin-ro/composer-version.nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martin-ro%2Fcomposer-version.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34335688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","lua","neovim","neovim-plugin","php"],"created_at":"2026-06-14T19:32:09.568Z","updated_at":"2026-06-14T19:32:10.309Z","avatar_url":"https://github.com/martin-ro.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# composer-version.nvim\n\nShow the exact installed version of every Composer package as virtual text in `composer.json`, just like PhpStorm's gray version numbers.\n\nVersions are read from the adjacent `composer.lock`, so what you see is what's actually installed.\n\n![composer-version.nvim showing installed versions as virtual text](screenshot.png)\n\n## Requirements\n\n- Neovim ≥ 0.10\n\n## Installation\n\n### [lazy.nvim](https://github.com/folke/lazy.nvim)\n\n```lua\n{\n    \"martin-ro/composer-version.nvim\",\n    event = { \"BufReadPre composer.json\" },\n}\n```\n\n### [packer.nvim](https://github.com/wbthomason/packer.nvim)\n\n```lua\nuse(\"martin-ro/composer-version.nvim\")\n```\n\n### [vim-plug](https://github.com/junegunn/vim-plug)\n\n```vim\nPlug 'martin-ro/composer-version.nvim'\n```\n\n## Configuration\n\nThe plugin works out of the box with zero configuration. Calling `setup()` is optional:\n\n```lua\nrequire(\"composer-version\").setup({\n    highlight = \"ComposerVersion\", -- highlight group for the virtual text\n    enabled = true,                -- render on startup\n})\n```\n\nThe `ComposerVersion` highlight group links to `Comment` by default. Override it to change the color:\n\n```lua\nvim.api.nvim_set_hl(0, \"ComposerVersion\", { fg = \"#6c7086\", italic = true })\n```\n\n## Commands\n\n| Command                    | Description                                  |\n| -------------------------- | -------------------------------------------- |\n| `:ComposerVersion refresh` | Re-read `composer.lock` and re-render        |\n| `:ComposerVersion toggle`  | Toggle the virtual text on/off               |\n\n## How it works\n\nWhen you open or save a `composer.json`, the plugin looks for a `composer.lock` in the same directory, parses the `packages` and `packages-dev` sections, and annotates every matching dependency line with its locked version using extmark virtual text. Saving `composer.lock` (e.g. after `composer update` in a terminal split) refreshes all open `composer.json` buffers.\n\nIf there is no lock file, or it can't be parsed, the plugin silently does nothing.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartin-ro%2Fcomposer-version.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartin-ro%2Fcomposer-version.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartin-ro%2Fcomposer-version.nvim/lists"}