Skip to content

pyrho/nvim-typescript-remote-plugin-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NeoVim Typescript Remote Plugin Boilerplate

The repository aims to provide a base to write Neovim plugins using Typescript.

It uses Neovim's official node js client, the example is taken from the node-client repo.

How to use/install

Build

Run make, this should build the files under the rplugin/node/dist folder, ready to be used by nvim.

Install

Make sure the repository is within a path in your runtimepath (run set rtp in vim to check the paths).

If you are using a package manager, just add your folder as you would a normal plugin: Plug '~/path/to/your/repo'

The key is that your (transpiled) JS code ends up under the rplugin/node path.

Neovim will look there, check your package.json for the main key and use this as an entry point for your plugin.

Once your plugin in your runtimepath, fire nvim and execute the :UpdateRemotePlugins command.

To check that your plugin has been properly registered, look at the ~/.local/share/nvim/rplugin.vim file, you should see your plugin and all of its registered commands, functions etc.

About

Boilerplate to start a remote plugin for neovim using typescipt

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published