vim-clojure-static icon indicating copy to clipboard operation
vim-clojure-static copied to clipboard

Special case ident for Datomic where clauses

Open devth opened this issue 8 years ago • 0 comments

Any thoughts on how we could support a special case ident for Datomic's :where?

(d/q '[:find ?team .
       :in $ ?user-id
       :where [?team :team/users ?user-id]
              [?team :team/active? true]]
     db user-id)

Notice how [?team :team/active? true]] is lined up with the clause above it. The default indent results in:

(d/q '[:find ?team .
       :in $ ?user-id
       :where [?team :team/users ?user-id]
       [?team :team/active? true]]
     db user-id)

devth avatar Mar 16 '17 12:03 devth