https://github.com/ggandor/nvim-parinfer
Fast and light parinfer plugin for Neovim (parinfer-lua wrapped with the Vim plugin from parinfer-rust) (WIP)
https://github.com/ggandor/nvim-parinfer
clojure lisp neovim parinfer plugin
Last synced: about 1 year ago
JSON representation
Fast and light parinfer plugin for Neovim (parinfer-lua wrapped with the Vim plugin from parinfer-rust) (WIP)
- Host: GitHub
- URL: https://github.com/ggandor/nvim-parinfer
- Owner: ggandor
- License: isc
- Created: 2021-03-19T18:45:16.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-06T08:14:44.000Z (almost 5 years ago)
- Last Synced: 2025-03-24T19:21:40.487Z (about 1 year ago)
- Topics: clojure, lisp, neovim, parinfer, plugin
- Language: Lua
- Homepage:
- Size: 14.6 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# nvim-parinfer (WIP)
**NOTE:** I have noticed some strage bugs (in indent and smart mode at least),
and currently I do not have the time to hunt them down - the problem may be in
the Lua library itself - , so consider this as WIP for the moment (or use it at
your own risk).
Fast and light [parinfer](https://shaunlebron.github.io/parinfer/) plugin for
Neovim.
### Why?
The two maintained parinfer plugins currently available for (Neo)Vim both have
certain drawbacks: The good old [VimL
plugin](https://github.com/bhurlow/vim-parinfer) uses the library ported by
[oakmac](https://github.com/oakmac/), which implements an older version of
Parinfer, and - unfortunately - is terribly slow, often on the verge of being
unusable. The more recent [Rust
port](https://github.com/eraserhd/parinfer-rust), on the other hand, while
super-fast and very polished, requires building dynamic libraries and a Rust
toolchain for that, which makes it inconvenient for less involved users, not to
say that it takes up a considerable amount of disk space too. (If you're fine
with these, just go ahead and use it of course!)
With a [Lua library](https://github.com/oakmac/parinfer-lua) available (thanks
to Chris Oakman, again!), we can have the best of both worlds now, a lightweight
yet fast plugin in the native scripting language of the editor, with hassle-free
installation and the latest features (smart mode) provided.
All credit goes to the aforementioned authors, I just took the Vim plugin and
the doc file from the parinfer-rust repo, and made trivial modifications to
stitch it together with the Lua lib.
## Install
Use your favourite package manager, e.g.
[vim-plug](https://github.com/junegunn/vim-plug):
```
Plug 'ggandor/nvim-parinfer'
```