ryadzenine / nvim-parinfer.js

neovim plugin for parinfer

Home Page:https://shaunlebron.github.io/parinfer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

neovim plugin for parinfer https://shaunlebron.github.io/parinfer

Changelog

Installation

Pre-requisites

Install node.js

Install latest neovim

Install node-host

Vundle

Using Vundle, add this to your vundle .config/nvim/init.vim section:

Plugin 'snoe/nvim-parinfer.js'

Inside nvim

  • :PluginInstall
  • :UpdateRemotePlugins you should see remote/host: node host registered plugins ['nvim-parinfer.js']
  • restart nvim
  • infer pars

Using it

You can let g:parinfer_mode = "off" to turn off the plugin.

You can let g:parinfer_mode = "indent" to switch to indent-mode.

You can let g:parinfer_mode = "paren" to switch to paren-mode.

Airline integration

Parinfer mode (indent / paren) is displayed in airline by default, you can disable it with let g:parinfer_airline_integration = 0.

Problems / troubleshooting

This does not seem to work well with paredit's insert mappings, I'd suggest turning it off let g:paredit_mode = 0

If you are using vim-sexp, I suggest turning off insert mode mappings let g:sexp_enable_insert_mode_mappings = 0

This is, maybe, not optimized enough - it reads and writes the entire buffer with each character change.

Development

To build

lein do npm install, cljsbuild auto plugin

If you want to see what the plugin is doing, you probably want to:

export NEOVIM_JS_DEBUG=/tmp/nvim-debug.log
tail -f ~/.nvimlog
tail -f /tmp/nvim-debug.log

About

neovim plugin for parinfer

https://shaunlebron.github.io/parinfer


Languages

Language:Clojure 69.2%Language:Vim Script 26.2%Language:JavaScript 4.6%