You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, by default neovim uses indentexpr=GetOCamlIndent(), even if ocp-indent is enabled.
If I manually comment out the first few lines of the vim file, it switches to ocp-indent:
" Only load this indent file when no other was loaded. "if exists("b:did_indent") " finish "endif "let b:did_indent = 1
I just had this problem and found out a temporary fix.
The thing is that the system's nvim files are read before, even if one changes the rtp inside ~/.config/nvim/init.{lua,vim}.
The system's indent/ocaml.vim defines b:did_indent, as it should.
Making ocp-indent into a package solves this somehow:
$ mkdir -p ~/.config/nvim/pack/mypack/start
$ ln -s "$(opam var share)/ocp-indent/vim"~/.config/nvim/pack/mypack/start/ocp-indent
It's far from perfect since it's vulnerable to opam switching but maybe this indent file isn't supposed to change too much anyway.
For some reason, by default neovim uses
indentexpr=GetOCamlIndent()
, even if ocp-indent is enabled.If I manually comment out the first few lines of the vim file, it switches to ocp-indent:
My neovim configuration is here
The text was updated successfully, but these errors were encountered: