Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

if source file is missing, reconstruct from namespace

  • Loading branch information...
commit 71838df9bb503c260bef5bba9736ae1039c47db1 1 parent 83c64b5
@frenchy64 frenchy64 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  plugin/typedclojure.vim
View
3  plugin/typedclojure.vim
@@ -57,7 +57,8 @@ function! s:checknsop() abort
\ ' (let [{:keys [env] :as data} (ex-data e)]'.
\ ' {:message (.getMessage e) :line (:line env)'.
\ ' :column (:column env) :form (if (contains? data :form) (str (:form data)) 0)'.
- \ ' :source (:source env) :ns (-> env :ns :name str)}))]'.
+ \ ' :source (or (:source env) (str (apply str (replace {\. \/ \- \_} res)) ".clj"))'.
+ \ ' :ns (-> env :ns :name str)}))]'.
\ ' [:ok []]))'
let [status, r] = fireplace#evalparse(cmd)
lclose
Please sign in to comment.
Something went wrong with that request. Please try again.