👋 I recently made the switch over to neovim to try it out, and it seems that vim-clojure-highlight
isn't happy anymore. Does anyone else use this on neovim? I don't know enough about the differences between vim and neovim to vet the plugin myself https://github.com/guns/vim-clojure-highlight
The last commit was >6 years ago so it's possible that it just doesn't work on neovim, but it feels odd writing clojure without it now
perhaps you might be interested in this: https://github.com/nvim-treesitter/nvim-treesitter
oh nice, that looks promising
🤦 I forgot that I've been using a fork instead of the original
There is a maintained fork of vim clojure highlight
Someone in this channel
I'll see if I can hunt it down, it might be the one that I'm using
is there a way to execute forms inside of another repl client? for example, I'll typically have lein repl
running in an adjacent tmux pane, ideally (for me) I'd like the output from cpp
to print inside of that open repl
I don't think nrepl supports that, but it's a good idea
I use Conjure, which prints eval results to a special Vim buffer. Not exactly what you’re looking for, but it’s a similar effect.
I know this isn't exactly what you're looking for, and it's only relevant if you happen to use tmux, but in the past I've done something very similar with https://github.com/benmills/vimux
It works with any kind of REPL. You can set up a key mapping / operator to send text to whatever process is running in the other tmux pane. Run a Clojure REPL there and voilÃ
You can also do something similar with https://github.com/kassio/neoterm, except using terminal buffers inside (neo)vim
oh nice, I'll give it a go. I've been using conjure with the split buffer which is pretty close but it's not as nice as tmux I think. I was poking around at nrepl and in theory it seems like you could hack together a server/client that would log out all of the evals it does while also providing a repl frontend
https://github.com/pinealan/niddle may be what you need there 🙂
I recently fixed it for use with Conjure too since it didn't support reader conditionals before.
This is me just not being all that familiar with clojure: I got it working adding the alias to my ~/.clojure/deps.edn
and launching with clj -A:niddle
, is there a way to use this everywhere I use lein repl
, or do I also need it in each project.clj
too?
You'll need to configure your ~/.lein/profiles.clj I think?
There's a :repl and :user profile that are enabled by default, so you can probably put something like {:repl {:nrepl-middleware ...}}
in ~/.lein/profiles.clj
, although I'm not sure what the exact option would be.
As in, that :nrepl-middleware
key is pure pseudo code 😅
I'm not too familiar with nrepl, but it seems like lein repl
is opening a server and then also a client connected to it so you can interact, is there a way to output things in that client from another client? I'd like to keep all of the output confined to the open repl instead of in vim splits/previews/etc