Skip to content

Commit

Permalink
if source file is missing, reconstruct from namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed Mar 6, 2014
1 parent 83c64b5 commit 71838df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/typedclojure.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71838df

Please sign in to comment.