Note: this project is deprecated and not maintained anymore. Try the new Haskell version instead!
ribosome is a framework for building and testing neovim python remote plugins. It builds on the official neovim-python host, providing a more flexible and modular startup mechanism.
Plugins built with ribosome can be conveniently managed by chromatin.
ribosome plugins are defined declaratively.
Configuration is contained in a single instance of class Config
, which is located by the plugin host by importing the
main module and analyzing the __all__
attribute.
The minimal requirement is the plugin name:
from ribosome.config import Config
config = Config(name='counter')
__all__ = ('config',)
The recommended way to launch a ribosome plugin is to use chromatin.
At runtime, a plugin can be added with:
Cram /path/to/package counter
To load the plugin automatically on start:
let g:chromatin_rplugins = [
\ {
\ 'name': 'counter',
\ 'spec': '/path/to/package',
\ }
\ ]
The directory in spec
has to be a package that pip can install, containing a setup.py
.
To test a plugin without chromatin, it can be started manually:
call jobstart()