Fork me on GitHub
#vim
<
2019-05-10
>
dharrigan06:05:08

It's great that vim-fireplace is getting some TLC atm 🙂

dominicm07:05:39

Excited to see what the pope does

Hukka09:05:34

@dominicm I'd love to get something for this, even if it's a dirty hack that won't last

dominicm11:05:42

I've got a minute, I'll send the patch here

dominicm11:05:06

diff --git a/plugin/fireplace.vim b/plugin/fireplace.vim
index a6531b9..7e4b339 100644
--- a/plugin/fireplace.vim
+++ b/plugin/fireplace.vim
@@ -1063,6 +1063,7 @@ function! s:add_pprint_opts(msg) abort
   let a:msg.pprint = 1
 
   let a:msg.pprint_fn = get(g:, 'fireplace_pprint_fn', 'cider.nrepl.middleware.pprint/fipp-pprint')
+  let a:msg['nrepl.middleware.print/print'] = get(g:, 'fireplace_pprint_fn', 'cider.nrepl.pprint/fipp-pprint')
   let max_right_margin = get(g:, 'fireplace_print_right_margin', &columns)
   let a:msg.print_right_margin = min([l:max_right_margin, &columns])
   if exists("g:fireplace_print_length")

dominicm11:05:32

not that dirty, similar to what I'll contribute

Hukka12:05:15

Heh, tpope has just made a change that conflicts 😉

dharrigan14:05:28

Is anyone using neovim + deoplete. If so, I was wondering, is it possible for it to complete via a lookup, when typing in a require? i.e., If I'm typing in (:require [clojure.te can I get it to start to offer suggestions for the te?

dharrigan14:05:02

Actually, figured it out

dharrigan14:05:33

I forgot to have cider running in my repl for the deoplete + clj-async.nvim to work together.

dharrigan14:05:36

all good 🙂

nate18:05:51

thank you @dominicm! that patch works for restoring pretty printing