Skip to content

Commit 808a68d

Browse files
authored
README: use ocamlformat from current switch in Vim (#1722)
1 parent 6bf3e31 commit 808a68d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,9 @@ This could be made simpler (by defining an elisp variable corresponding to the s
252252

253253
Optional: You can change the options passed to OCamlFormat (to use the option `--disable-outside-detected-project` for example), you can [customize NeoFormat](https://github.com/sbdchd/neoformat#config-optional) with:
254254
```
255+
let g:opambin = substitute(system('opam config var bin'),'\n$','','''')
255256
let g:neoformat_ocaml_ocamlformat = {
256-
\ 'exe': 'ocamlformat',
257+
\ 'exe': g:opambin . '/ocamlformat',
257258
\ 'no_append': 1,
258259
\ 'stdin': 1,
259260
\ 'args': ['--disable-outside-detected-project', '--name', '"%:p"', '-']

0 commit comments

Comments
 (0)