Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meain/vim-package-info
Vim plugin to quickly view info about the packages you use
https://github.com/meain/vim-package-info
package-manager vim-plugin
Last synced: 3 months ago
JSON representation
Vim plugin to quickly view info about the packages you use
- Host: GitHub
- URL: https://github.com/meain/vim-package-info
- Owner: meain
- License: apache-2.0
- Archived: true
- Created: 2019-04-17T04:05:15.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-20T03:43:57.000Z (about 2 years ago)
- Last Synced: 2024-08-01T16:35:20.251Z (6 months ago)
- Topics: package-manager, vim-plugin
- Language: JavaScript
- Homepage:
- Size: 260 KB
- Stars: 71
- Watchers: 3
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-package-info ![](https://travis-ci.org/meain/vim-package-info.svg?branch=master)
It lets you view the latest version of the packages you depend on and see if any of them are vulnerable.
> Vulnerability detection is still a work in progress ([disabled at the moment](https://ossindex.sonatype.org/doc/legacy-migration))
![](https://i.imgur.com/pzIrEkq.png)
**Currently supports:**
* javascript:
* `package.json`
* rust:
* `Cargo.toml`
* python:
* `requirements.txt`
* `Pipfile`
* `pyproject.toml`Default colors:
- `green`: patch update
- `cyan`: minor update
- `red`: major update## Installation
> Make sure you have node support for neovim.
> Run the command `npm install -g neovim` to add it. [#20](https://github.com/meain/vim-package-info/issues/20)Use your favorite plugin manager to install the plugin.
I use [vim-plug](https://github.com/junegunn/vim-plug).```vim
Plug 'meain/vim-package-info', { 'do': 'npm install' }
```After installing the plugin, run `:UpdateRemotePlugins` to register it with Neovim.
---
Needs virtual text support. ( Neovim 0.3.2 )
> Check if `echo has('nvim-0.3.2')` returns 1
## Configuration
#### Change prefix
```
let g:vim_package_info_virutaltext_prefix = ' ¤ '
```### Change highlight group
```
let g:vim_package_info_virutaltext_highlight = 'NonText'
```There are three other highlight groups that you can change.
You can change them like this```
hi VimPackageInfoPatch guifg=#8BC34A
hi VimPackageInfoMinor guifg=#00BCD4
hi VimPackageInfoMajor guifg=#F44336
```## Possible issues
The plugin might conflict with [ALE](https://github.com/w0rp/ale) or any other plugins that use `virtualtext`.
This is because `virtualtext` context is the same for all the plugins and if one clears the `virtualtext`
it will clear the `virutaltext` that was made by all plugins.Not a lot can be done about this, but in the case of ALE you can checkout [#14](https://github.com/meain/vim-package-info/issues/14).
## Alternatives
Other options for you to checkout if this does not work for you
- [akinsho/dependency-assist.nvim](https://github.com/akinsho/dependency-assist.nvim)
- [vuki656/package-info.nvim](https://github.com/vuki656/package-info.nvim)
- [mhinz/vim-crates](https://github.com/mhinz/vim-crates)