Description
A framework for creating Vim plugins in Rust.
Installation
Add the plugin using vim-plug
.
Refer to rust-plug-poc for an example.
" Framework allowing Vim plugins written in Rust
Plug 'AceofSpades5757/rust-plug'
" Plugin Written in Rust
Plug 'AceofSpades5757/rust-plug-poc',
\ {
\ 'do': ':call rustplug#install(''AceofSpades5757/rust-plug-poc'')',
\ }
Then install using PlugInstall
. The posthook, do
, will install the Rust plugin.
Uses rustplug/*
, in your .vim
or vimfiles
directory to manage plugins.
Usage
Help
:help rust-plug.txt
Options
g:rustplug_max_work_time
: Seconds to allow the plugin to run (run the binary).
Functions
rustplug#run
: Run Rust plugin. Will build if not already built. Will install if not already installed.rustplug#install
: Build and install Rust plugin.rustplug#run_binary
: Run a specific binary, given path.
Commands (matched to functions)
RustPlugRun
: Run Rust plugin. Will build if not already built. Will install if not already installed.RustPlugInstall
: Build and install Rust plugin.RustPlugRunBinary
: Run a specific binary, given path.