An open API service indexing awesome lists of open source software.

https://github.com/djblue/vrepl

vim fireplace + clojure nrepl = awesome
https://github.com/djblue/vrepl

clojure nrepl vim vim-fireplace

Last synced: 2 months ago
JSON representation

vim fireplace + clojure nrepl = awesome

Awesome Lists containing this project

README

          

# vrepl

Bootstrap vim with a clojure nrepl session.

## dependencies

- [clojure 1.9+](https://clojure.org/guides/getting_started)
- [tpope/fireplace.vim](https://github.com/tpope/vim-fireplace)

## recommended plugins

- [luochen1990/rainbow](https://github.com/luochen1990/rainbow)
- [vim-scripts/paredit.vim](https://github.com/vim-scripts/paredit.vim)
- [venantius/vim-cljfmt](https://github.com/venantius/vim-cljfmt)
- [ervandew/supertab](https://github.com/ervandew/supertab)

## setup

In `$HOME/.clojure/deps.edn`, add a new alias:

```clojure
:aliases
{:vrepl {:main-opts ["-m" "vrepl.core"]
:extra-deps
{vrepl {:git/url "https://github.com/djblue/vrepl.git"
:sha "cc7f140869ce3ab8602e289248226a9b2b247943"}}}}
```

then run:

```bash
clojure -Avrepl
```

If you want to include the current directoy in your class path, do:

```bash
clojure -Sdeps '{:paths ["."]}' -Avrepl
```

You should be put into a new empty vim window in a clojure buffer with a
connected nrepl session. Any additional arguments will be passed directly
to vim, so you can pass files you want to open as well.

To setup a shell alias for vrepl, do:

```bash
alias vrepl="clojure -Sdeps '{:paths [\".\"]}' -Avrepl-dev"
```