Add cljc extension support to connection process

This commit is contained in:
Tim Pope 2015-06-23 15:56:50 -04:00
parent 7b2ae78bd7
commit cb3c270c99

View File

@ -612,7 +612,7 @@ function! fireplace#platform(...) abort
endif endif
endfor endfor
let path = s:path_extract(getbufvar(buf, '&path')) let path = s:path_extract(getbufvar(buf, '&path'))
if !empty(path) && fnamemodify(bufname(buf), ':e') =~# '^cljx\=$' if !empty(path) && fnamemodify(bufname(buf), ':e') =~# '^clj[cx]\=$'
return extend({'_path': path, 'nr': bufnr(buf)}, s:oneoff) return extend({'_path': path, 'nr': bufnr(buf)}, s:oneoff)
endif endif
throw 'Fireplace: :Connect to a REPL or install classpath.vim' throw 'Fireplace: :Connect to a REPL or install classpath.vim'