Commits

Tamas Kovacs  committed 98cdf5f

Autodetect ritz-swank by checking the presence of ~/.lein/plugins/lein-ritz*.jar

  • Participants
  • Parent commits f948582

Comments (0)

Files changed (1)

File ftplugin/clojure/slimv-clojure.vim

 " slimv-clojure.vim:
 "               Clojure filetype plugin for Slimv
-" Version:      0.9.4
-" Last Change:  07 Jan 2012
+" Version:      0.9.9
+" Last Change:  03 Oct 2012
 " Maintainer:   Tamas Kovacs <kovisoft at gmail dot com>
 " License:      This file is placed in the public domain.
 "               No warranty, express or implied.
 function! b:SlimvSwankLoader()
     " First autodetect Leiningen and Cake
     if executable( 'lein' )
-        return '"lein swank"'
+        if globpath( '~/.lein/plugins', 'lein-ritz*.jar' ) != ''
+            return '"lein ritz ' . g:swank_port . '"'
+        else
+            return '"lein swank"'
+        endif
     elseif executable( 'cake' )
         return '"cake swank"'
     else