diff --git a/rc/base/ocaml.kak b/rc/base/ocaml.kak index 3686d4ed..026bac7b 100644 --- a/rc/base/ocaml.kak +++ b/rc/base/ocaml.kak @@ -1,8 +1,6 @@ # http://ocaml.org # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ -# require ocp-indent - # Detection # ‾‾‾‾‾‾‾‾‾ @@ -18,30 +16,13 @@ add-highlighter shared/ocaml/code default-region group add-highlighter shared/ocaml/string region '"' (?Gg|ocp-indent --config base=%opt{indentwidth} --indent-empty --lines %val{cursor_line}" - } -} - # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ hook -group ocaml-highlight global WinSetOption filetype=ocaml %{ add-highlighter window/ocaml ref ocaml } -hook global WinSetOption filetype=ocaml %{ - hook window InsertChar [|\n] -group ocaml-indent ocaml-indent-on-char -} - hook -group ocaml-highlight global WinSetOption filetype=(?!ocaml).* %{ remove-highlighter window/ocaml } -hook global WinSetOption filetype=(?!ocaml).* %{ - remove-hooks window ocaml-indent -} - # Macro # ‾‾‾‾‾