dgrnbrg/vim-redl

Make :Repl a non-filetype command

Opened this issue · 2 comments

I often want to open a quickly open a repl even when not in a Clojure buffer. (I'm working in a polyglot project.) However :Repl is only set as a command when a Clojure buffer is active. Maybe :Repl could be a plain command, so that you can open a quick repl from any buffer.

I would have added the "enhancement" label, but I can't figure out how...

How would the :Repl know which nrepl to connect to? Currently, the way that :Repl knows which repl to actually connect to is based on the nrepl that's in the file currently opened.