summaryrefslogtreecommitdiff
path: root/editors/parinfer-rust/files/patch-plugin_parinfer.vim
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-01-26 17:03:48 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2019-01-26 17:03:48 +0000
commit5083e3d63214509295466c117e5d1e0518733cb5 (patch)
tree6d65a12d04c96773e17a4ce08d8c8490fd7952c4 /editors/parinfer-rust/files/patch-plugin_parinfer.vim
parentNote the exact cause of the failure (conflict with the file proto.h (diff)
New port: editors/parinfer-rust
A full-featured, super fast implementation of Shaun Lebron's parinfer. Parinfer is a proof-of-concept editor mode for Lisp programming languages. It simplifies the way we write Lisp by auto-adjusting parens when indentation changes and vice versa. The hope is to make basic Lisp-editing easier for newcomers and experts alike, while still allowing existing plugins like Paredit to satisfy the need for more advanced operations. Parinfer-rust comes with plugins for Kakoune, Vim8, and Neovim. The Rust library can be called from other editors that can load dynamic libraries. This plugin implements "smart" mode. Rather than switching between "paren" mode and "indent" mode, parinfer uses information about how the user is changing the file to decide what to do. WWW: https://github.com/eraserhd/parinfer-rust
Diffstat (limited to '')
-rw-r--r--editors/parinfer-rust/files/patch-plugin_parinfer.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/editors/parinfer-rust/files/patch-plugin_parinfer.vim b/editors/parinfer-rust/files/patch-plugin_parinfer.vim
new file mode 100644
index 000000000000..4bd8e86250d9
--- /dev/null
+++ b/editors/parinfer-rust/files/patch-plugin_parinfer.vim
@@ -0,0 +1,13 @@
+--- plugin/parinfer.vim.orig 2019-01-26 15:56:17 UTC
++++ plugin/parinfer.vim
+@@ -9,6 +9,10 @@ if !exists('g:parinfer_force_balance')
+ endif
+
+ if !exists('g:parinfer_dylib_path')
++ let g:parinfer_dylib_path = 'libparinfer_rust.so'
++endif
++
++if !exists('g:parinfer_dylib_path')
+ if has('macunix')
+ let g:parinfer_dylib_path = expand('<sfile>:p:h:h'). '/target/release/libparinfer_rust.dylib'
+ elseif has('unix')