Skip to content

Commit cb4ff96

Browse files
committed
Switch REPL namespace on entering and writing buffers
1 parent fcd4fdc commit cb4ff96

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugin/socketrepl.vim

+5
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ augroup socketrepl_completion
214214
autocmd FileType clojure setlocal omnifunc=socketrepl#omnicomplete
215215
augroup END
216216

217+
augroup socketrepl_ns
218+
autocmd!
219+
autocmd BufRead,BufWrite *.clj* SwitchBufferNS
220+
augroup END
221+
217222
if !exists('g:disable_socket_repl_mappings')
218223
nnoremap K :DocCursor<cr>
219224
nnoremap [d :SourceCursor<cr>

0 commit comments

Comments
 (0)