Open ddosia opened 8 years ago
How exactly did you try to indent ? The default keybinding for indent-line is ==
.
I was expecting indentation when I hit "return" key. Also I tried ==
. No luck.
I'm having the same issue. Was this ever resolved @ddosia ?
The file to load is actually configured twice, for the two cases where:
ocp-indent
is installed in the current switch (then that version should be used), line 8ocp-indent
is not in the current switch (then, we fallback to the version from the switch where opam-user-setup
was run), on the line at the end. This is not done for other tools like merlin
, which aren't compatible across OCaml compiler versions.This is designed to give users ocp-indent
support, without requiring them to install it in every opam switch.
It seems indeed that the path at the end failed to be updated correctly when ocp-indent
's installation paths changed, but the previous one should be OK, and is the one that should be used in your case.
Can you try the load command by hand and see what happens ?
let s:opam_share_dir = system("opam config var share")
execute "set rtp^=" . s:opam_share_dir . "/ocp-indent/vim"
It turned out that ocp-indent
wasn't showing up on my path because the OPAM environment was not being set up. The problem was solved for me by adding the line
eval `opam config env`
to my .profile
. Thanks for the help.
I had this issue recently on spacemacs fixed by adding the results of opam config env
to ~/.spacemacs.env
Hi there! I am new to ocaml. I have user-setup version 0.4 [4.02.1] installed through opam. Recently I've tried
After that I fixed #21 vim has lunched fine. I've tried to edit .ml file to see how indentation works, but nothing happens. Looks like
ocp-ident
doesn't work.This is what was generated:
The last path (
source "/home/dchurikov/.opam/4.02.1/share/vim/syntax/ocp-indent.vim"
) actually points nowhere, right path would be/home/dchurikov/.opam/4.02.1/share/ocp-indent/vim/indent/ocaml.vim
. Anyway after I set this path it still doesn't indent.Thanks in advance.