https://github.com/nemanjajojic/package-version.nvim
Show installed package version inside of a main package manager file
https://github.com/nemanjajojic/package-version.nvim
composer lock lockfile neovim-plugin package php version
Last synced: 2 months ago
JSON representation
Show installed package version inside of a main package manager file
- Host: GitHub
- URL: https://github.com/nemanjajojic/package-version.nvim
- Owner: nemanjajojic
- License: mit
- Created: 2025-10-29T22:41:25.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-10-29T23:39:40.000Z (3 months ago)
- Last Synced: 2025-10-30T01:27:46.352Z (3 months ago)
- Topics: composer, lock, lockfile, neovim-plugin, package, php, version
- Language: Lua
- Homepage:
- Size: 500 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π Package Version
This plugin will help you to manage package version by showing installed version
from `composer.lock` inside of `composer.json`.

## π¦ Installation
Install plugin using package manager of your choice, for example with
### lazy.nvim
```lua
{
"nemanjajojic/package-version.nvim",
config = function()
require("package-version").setup()
end,
keys = {
-- Here you can set your preferred keybinding eg.
{
"C",
":ComposerPackageVersion",
mode = "n",
desc = "Show installed composer package version"
},
}
}
```
## π» Commands
In order to execute command you have to type
```vim
:ComposerPackageVersion
```
> [!IMPORTANT]
> It's important to note that this command can be executed only
> when `composer.json` is open in current buffer.
## β¨οΈ Mappings
Plugin do not have any default mapping configured for command.
You can choose your own keybinding.
## π‘ Idea
An idea is to simplify the workflow for developers who frequently work with
PHP projects by providing immediate visibility of installed package versions directly
within the `composer.json` file.
Apart from enhancing productivity, this feature aims to reduce
context switching between files.
> [!NOTE]
> This plugin draws inspiration from JetBrains PhpStorm IDEβs feature
> that displays installed package versions when the `composer.json` file is open.
## β¨ Next Steps
Plan is to support more package managers in the future:
- npm
- pip
## π¨βπ» Author
[nemanjajojic](https://github.com/nemanjajojic)
## Β© License
This software is released under the MIT License.