Assume Leiningen 2 in documentation

This commit is contained in:
Tim Pope 2013-03-13 18:43:01 -04:00
parent d40c8d9c41
commit a7f460ad1b
2 changed files with 14 additions and 12 deletions

View File

@ -28,10 +28,10 @@ This list isn't exhaustive; see the `:help` for details.
### Transparent setup
Foreplay.vim talks to nREPL. With Leiningen 2, it connects automatically
based on `target/repl-port`, otherwise it's just a `:Connect` away. You can
connect to multiple instances of nREPL for different projects, and it will
use the right one automatically.
Foreplay.vim talks to nREPL. With Leiningen, it connects automatically based
on `target/repl-port`, otherwise it's just a `:Connect` away. You can connect
to multiple instances of nREPL for different projects, and it will use the
right one automatically.
The only external dependency is that you have either a Vim with Python support
compiled in, or `ruby` in your path. (Don't ask.)

View File

@ -18,16 +18,11 @@ it.
https://github.com/tpope/vim-classpath
LEININGEN *foreplay-leiningen*
Leiningen support is currently bare bones. If a Leiningen project is found,
'makeprg' will be set to "lein".
Leiningen 2.x writes to target/repl-port when `lein repl` is invoked. If this
file is found, an nREPL connection will be established automatically.
CONNECTING TO A REPL *foreplay-connect*
Connecting to lein repl happens automatically. If you have a different setup,
you can connect by hand.
*foreplay-:Connect*
:Connect {proto}://{host}:{port} {path}
Connect to a REPL server. The path is the root of the
@ -44,6 +39,13 @@ The only adapter shipped with foreplay.vim is for nREPL. You need Ruby
installed and either |if_pyth| or the ruby command in your PATH.
(This curious combination is an accident of history.)
LEININGEN *foreplay-leiningen*
In addition to automatic repl connection, Clojure buffers in a Leiningen
project will automatically have their 'makeprg' set to lein. This has the
nominal value of letting you call, for example, |:make| deps rather than
:!lein deps.
DOCUMENTATION *foreplay-documentation*
*foreplay-:Doc*