Skip to content
This repository has been archived by the owner on Nov 12, 2017. It is now read-only.

neovim/node-host

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update

This is no longer needed as it has been merged into neovim! neovim/neovim#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)