ports/editors/parinfer-rust/files/patch-rc_parinfer.kak
Tobias Kortkamp 0b8eee9d57 editors/parinfer-rust: Fix Kakoune plugin for Lisp and Scheme files
Add patch to not immediately remove all key hooks after adding them
2019-01-26 22:14:07 +00:00

11 lines
598 B
Text

--- rc/parinfer.kak.orig 2019-01-26 21:44:33 UTC
+++ rc/parinfer.kak
@@ -72,7 +72,5 @@ hook -group parinfer global WinSetOption filetype=(clo
hook -group parinfer window NormalKey .* %{ parinfer -if-enabled -smart }
hook -group parinfer window InsertChar (?!\n).* %{ parinfer -if-enabled -smart }
hook -group parinfer window InsertDelete .* %{ parinfer -if-enabled -smart }
-}
-hook -group parinfer global WinSetOption filetype=(!clojure|lisp|scheme).* %{
- remove-hooks window parinfer
+ hook -once -always window WinSetOption filetype=.* %{ remove-hooks window parinfer }
}