Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neoclide/npm.nvim
Npm plugin to make vim user works with npm easier
https://github.com/neoclide/npm.nvim
neovim npm
Last synced: about 2 months ago
JSON representation
Npm plugin to make vim user works with npm easier
- Host: GitHub
- URL: https://github.com/neoclide/npm.nvim
- Owner: neoclide
- License: mit
- Created: 2018-03-17T17:05:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-18T10:23:36.000Z (over 3 years ago)
- Last Synced: 2024-06-18T05:37:19.438Z (3 months ago)
- Topics: neovim, npm
- Language: Python
- Size: 35.2 KB
- Stars: 28
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Npm.nvim
[![](http://img.shields.io/github/issues/neoclide/npm.nvim.svg)](https://github.com/neoclide/denite-extra/issues)
[![](http://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![](https://img.shields.io/badge/doc-%3Ah%20npm.txt-red.svg)](doc/npm.txt)Npm plugin to make vim user works with npm easier.
## Commands
* `Denite npm` show all npm packages of current project.
* `Denite func` show functions location using
[parsefunc](https://github.com/chemzqm/parsefunc)
* `NpmInstall` run npm install command in nvim terminal.
* `NpmOutaded` show outdated npm packages info in denite interface.
* `NpmDev` show developing npm modules.
* `NpmRun [script]` run npm script in nvim terminal.
* `NpmSearch [name]` search npm package in browser
* TODO: `Denite npm/used` show all npm packages that you have ever been used.For detail, see `:h npm.txt`
## Requirement
* node > 9.0
* python 3
* [neovim](https://github.com/neovim/neovim) > 0.2.2
* [denite.nvim](https://github.com/Shougo/denite.nvim)## Installation
Firsly, copy file `rplugin/python3/denite/kind/npm.py` to `denite.nvim/rplugin/python3/denite/kind/npm.py`,
since denite doesn't support custom kind in separate plugins.Take [vim-plug](https://github.com/junegunn/vim-plug) for example:
Plug 'neoclide/npm.nvim', {'do' : 'npm install'}
Run command `:UpdateRemotePlugins` to regist this remote plugin if needed.