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

Always evaluate in a namespace #244

Closed SevereOverfl0w closed 8 years ago

SevereOverfl0w commented 8 years ago

Is there a way I can :Eval in a particular namespace?

In my situation, I am doing something similar to https://github.com/tpope/vim-fireplace/issues/149 but after an error, it is impossible to run anything outside the broken namespace.

If I switch to a file which is okay (basically it doesn't have any dependencies on my project) it's okay, and I can reload. project.clj also has this behavior, as it defaults execution to the user namespace (which is the namespace I want to run :Eval in)

i.e. is there any way for me to always trigger the behavior of :Eval as if it was in project.clj?

SevereOverfl0w commented 8 years ago

If I :call fireplace#echo_session_eval('(go)', {'ns': 'user'}) I can get it to work.

This can probably be closed now, unless there's something you can add @tpope?

tpope commented 8 years ago

:Require doesn't fix it?

SevereOverfl0w commented 8 years ago

Not until I correct the namespace(s) I've broken.

tpope commented 8 years ago

Then no, nothing else to add, if you are content with your workaround.