Watch
1
0
Fork
You've already forked node-host
0
mirror of https://github.com/neovim/node-host.git synced 2026-11-17 02:30:32 +00:00
node.js host (for Nvim 0.2.0 or older)
  • Vim Script 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2017-11-11 10:34:54 -08:00
autoload fix: health check incorrectly requires yarn and npm 2017-08-18 09:57:07 -07:00
plugin Remove *.js pattern for node host 2017-06-07 12:33:28 -07:00
.gitignore Add peripheral tests 2015-07-08 22:58:04 -04:00
LICENSE Add license 2015-07-10 22:09:58 -04:00
README.md Update README.md 2017-11-11 10:34:54 -08:00

Update

This is no longer needed as it has been merged into neovim! https://github.com/neovim/neovim/pull/7458 🎉

Please direct node client related issues to neovim client repository.

node-host

Installation

Prerequisites: You must have the node executable (currently only 6.x is supported) on your PATH and a copy of npm

  1. Install this plugin using vim-plug or your favorite plugin manager
  2. Install neovim package globally: npm install -g neovim

Example config (vim-plug)

call plug#begin()
  Plug 'neovim/node-host', { 'do': 'npm install -g neovim' }
call plug#end()

Usage

To use a Node plugin, place the appropriate file or folder in rplugin/node in a runtimepath directory (e.g. ~/.nvim/rplugin/node), run npm install if necessary, and then execute a :UpdateRemotePlugins.

You must restart neovim after a :UpdateRemotePlugins before you can use your new plugin.

Writing plugins

A plugin can either be a file or folder in the rplugin/node directory. If the plugin is a folder, the main script from package.json will be loaded.

Please see the neovim client repository for documentation on how to write a plugin (API is currently a WIP)