Git Product home page Git Product logo

neovim-package-info's Introduction

Neovim package info

Preview

The concept is copied from vim-package-info (thank you), but since that package wasn't working on my setup, and I really don't like debugging javascript on my free time, I rewrote it in Rust as an exercise.

Also a thank you goes to @srishanbhattarai and the repo neovim-calculator for giving me the idea and the basics of how to write a neovim plugin in Rust.

This plugin should help keep track of projects' requirements, currently installed versions and latest available versions, giving a quick feedback if any dependency needs to be updated and how painful it will be (based on semantic versioning).

How does it work

Whenever you open a supported file (cargo.toml, Pipfile and package.json at the moment), the plugin will first look for a lockfile (only works with yarn.lock for js right now), then print the currently installed version after the dependency line in the manifest file.

After that it will query the registry to retrieve the latest available version, and if there is a more recent one it will print and highlight it next to the current one.

Installation

You will need wget to download the binary, so you won't have to build it yourself.

Using vim-plug:

Plug 'Psykopear/neovim-package-info', { 'do': './install.sh' }

Should be similar for other package managers

TODO

  • Cache results for a while
  • Check requirement and highlight if currently installed package does not match
  • Make colors configurable
  • Make it installable with plugin managers
  • Use a gif to showcase the plugin

neovim-package-info's People

Contributors

psykopear avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.