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 ### Transparent setup
Foreplay.vim talks to nREPL. With Leiningen 2, it connects automatically Foreplay.vim talks to nREPL. With Leiningen, it connects automatically based
based on `target/repl-port`, otherwise it's just a `:Connect` away. You can on `target/repl-port`, otherwise it's just a `:Connect` away. You can connect
connect to multiple instances of nREPL for different projects, and it will to multiple instances of nREPL for different projects, and it will use the
use the right one automatically. right one automatically.
The only external dependency is that you have either a Vim with Python support The only external dependency is that you have either a Vim with Python support
compiled in, or `ruby` in your path. (Don't ask.) compiled in, or `ruby` in your path. (Don't ask.)

View File

@ -18,16 +18,11 @@ it.
https://github.com/tpope/vim-classpath 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 A REPL *foreplay-connect*
Connecting to lein repl happens automatically. If you have a different setup,
you can connect by hand.
*foreplay-:Connect* *foreplay-:Connect*
:Connect {proto}://{host}:{port} {path} :Connect {proto}://{host}:{port} {path}
Connect to a REPL server. The path is the root of the 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. installed and either |if_pyth| or the ruby command in your PATH.
(This curious combination is an accident of history.) (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* DOCUMENTATION *foreplay-documentation*
*foreplay-:Doc* *foreplay-:Doc*