Fork me on GitHub
#vim
<
2016-11-01
>
mikepjb20:11:11

(deftask dev []
  (comp
    (reload)
    (cljs)))
Is there a plugin for vim that will highlight macro names like deftask?

mikepjb20:11:42

or reload and cljs for that matter

dominicm20:11:00

Though to get it working for boot, you might need to set a var

dominicm20:11:42

On mobile, so can't link, but it's in my .files on github if you feel like digging. It's to do with setting a buffer local in build.boot files

mikepjb22:11:12

I wasn’t able to get it working with boot

mikepjb22:11:21

this looks like relevant code

mikepjb22:11:25

if expand('%:t') == 'build.boot'
  let b:fireplace_ns = 'boot.user'
endif

mikepjb22:11:27

in your dotfiles

mikepjb22:11:39

thanks anyway @dominicm you’re always so helpful! At least the plugin works for standard clojure code