Giter VIP home page Giter VIP logo

hex.vim's Introduction

hex.vim

Inspired by alexbel's vim-rubygems, this vim plugin provides some nifty little functions to interact with your mix.exs file, and retrieve informations on hex packages, without leaving the comfort of vim.

asciicast

Installation

As usual, clone this repo/use whichever plugin manager you fancy, and you are ready to go!

Prerequisites

This plugin uses mattn/webapi-vim for making calls to the hex.pm API, so please make sure to have that cloned or in your list of plugins. ๐Ÿ‘Œ๐Ÿผ

How to use

HexAppendRelease

Leave your cursor on a line with a package name, (like {:ecto or even {:credo, only: [:dev, :test]}]) and let the magic happen.

HexAllReleases [package]

Leave your cursor on a line with a package name, or pass a name as only argument to get all the releases for given package in a little pane.

:HexAllReleases
    or
:HexAllReleases mock

-------------------
0.1.3 (released on 2016-03-06)
0.1.2 (released on 2016-03-06)
0.1.1 (released on 2015-05-09)
0.1.0 (released on 2014-11-18)

HexAllVersions [package]

Just an alias for HexAllReleases โ˜๐Ÿผ

HexPackageInfo [package]

Leave your cursor on a line with a package name, or pass a name as only argument to get info on the given package (from mix hex.info).

:HexPackageInfo
    or
:HexPackageInfo portmidi

-------------------
Elixir bindings to the portmidi C library

Config: {:portmidi, "~> 3.2"}
Releases: 3.2.0, 3.1.2, 3.1.1, 3.1.0, 3.0.0

Maintainers: Andrea Rossi
Licenses: MIT
Links:
  Github: https://github.com/lucidstack/ex-portmidi

HexOpenHexDocs [package]

Open the hexdocs page for the given package (or in the line under the cursor) in the system-default browser. This doesn't check if hexdocs are published for a package, so you might get some 404's here and there.

Note: this uses open on OSX and xdg-open on Linux systems.

HexOpenGithub [package]

Open the github repo for the given package (or in the line under the cursor) in the system-default browser.

Note: this uses open on OSX and xdg-open on Linux systems.

hex.vim's People

Contributors

lucidstack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dkarter frm

hex.vim's Issues

HexAppendRelease and some other functions not working

Thanks for this great plugin!

I am trying to use the HexAppendRelease command but getting the following error:

image

I'm using Hex 0.15.0 on Vim 8:

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 27 2017 23:34:51)
MacOS X (unix) version
Included patches: 1-381

And webapi-vim:

silent! let g:plugs['webapi-vim'].commit = '54b0c16'

mattn/webapi-vim@54b0c16

Same happens for HexAllVersions:
image

HexOpenGithub:
image

They are probably all rooted in the same bug, maybe the api json format changed. Hopefully an easy fix.

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.