1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00

use detected executable for clojure repl (#3932)

This commit is contained in:
thawk 2020-11-02 15:46:08 +08:00 committed by GitHub
parent af773b6bff
commit ae0f4f3b6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ function! SpaceVim#layers#lang#clojure#config() abort
" cmd-clj
let clojure = get(filter(['cmd-clj'], 'executable(v:val)'), 0, 'clojure')
call SpaceVim#plugins#runner#reg_runner('clojure', clojure . ' -M %s')
call SpaceVim#plugins#repl#reg('clojure', 'cmd-clj')
call SpaceVim#plugins#repl#reg('clojure', clojure)
call SpaceVim#plugins#tasks#reg_provider(funcref('s:lein_tasks'))
call add(g:spacevim_project_rooter_patterns, 'project.clj')
endfunction