12 releases
Uses old Rust 2015
0.1.15 | Oct 5, 2017 |
---|---|
0.1.14 | Oct 5, 2017 |
0.1.13 | Sep 3, 2017 |
0.1.11 | Aug 18, 2017 |
#359 in Text editors
27 downloads per month
11KB
177 lines
nitrous
Snippets should be like whippets: fast.
$ snip string base "{-# LANGUAGE TemplateHaskell, DeriveFoldable, DeriveFunctor, DeriveTraversable #-}"
$ snip fetch base
{-# LANGUAGE TemplateHaskell, DeriveFoldable, DeriveFunctor, DeriveTraversable #-}
The Pitch
- Fast. Like, really, unthinkably fast.
- Easy vim integration
- Written in Rust
The Anti-Pitch
- Not tested with Emacs
- No support for fuzzy search yet
- Not as mature as other solutions
Installation
Script
The easiest way to install for most users is probably via a shell script, viz.
curl -LSfs https://japaric.github.io/trust/install.sh | sh -s -- --git vmchale/nitrous
Binary releases
If the script doesn't work, you can also download prebuilt binaries. You can find binaries for various platforms on the release page.
Cargo
First, install cargo. Then:
$ cargo install nitrous
Configuration
First, add a snippet to the user datastore:
$ snip string lens "import Control.Lens"
To configure vim to insert this snippet when editing Haskell, put the following
into your .vimrc
:
au BufNewFile,BufRead *.hs nnoremap <leader>l :read !snip fetch lens<CR>
Dependencies
~2–11MB
~90K SLoC