Permalink
Browse files

if source file is missing, reconstruct from namespace

  • Loading branch information...
1 parent 83c64b5 commit 71838df9bb503c260bef5bba9736ae1039c47db1 @frenchy64 frenchy64 committed Mar 6, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit 71838df

Please sign in to comment.