Skip to content

Instantly share code, notes, and snippets.

@xfsnowind
Forked from malyn/vim-fireplace-figwheel.diff
Last active August 29, 2015 14:24
Show Gist options
  • Save xfsnowind/5a01fcace9725406a08e to your computer and use it in GitHub Desktop.
Save xfsnowind/5a01fcace9725406a08e to your computer and use it in GitHub Desktop.
diff --git a/plugin/fireplace.vim b/plugin/fireplace.vim
index 6c32caa..a415bf8 100644
--- a/plugin/fireplace.vim
+++ b/plugin/fireplace.vim
@@ -232,7 +232,9 @@ function! s:repl.piggieback(arg, ...) abort
else
let arg = ' :repl-env ' . a:arg
endif
- let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')')
+ "let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')')
+ call connection.eval("(use 'figwheel-sidecar.repl-api)")
+ let response = connection.eval('(cljs-repl)')
if empty(get(response, 'ex'))
call insert(self.piggiebacks, extend({'connection': connection}, deepcopy(s:piggieback)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment