tpope / vim-fireplace

fireplace.vim: Clojure REPL support
https://www.vim.org/scripts/script.php?script_id=4978
1.75k stars 139 forks source link

Is there a way to run fireplace commands when in non-Clojure files? #277

Closed rsslldnphy closed 5 years ago

rsslldnphy commented 8 years ago

For example, when editing a migration (.sql) file, I often want to run :Eval (user/migrate) and :Eval (user/rollback), but the :Eval command isn't available in SQL files. Is there an easy way to make it available or would that require changing the plugin itself?

tpope commented 8 years ago

Unfortunately a lot of behavior is tied to the buffer (namespace to run in for instance), so that's not an easy change to make.

exupero commented 7 years ago

There's a nREPL Python client that you can call from vimscript. I've used it to run nREPL commands from arbitrary files.