This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-16
Channels
- # atom-editor (6)
- # babashka (31)
- # beginners (34)
- # calva (1)
- # cider (21)
- # clj-kondo (5)
- # cljsrn (2)
- # clojars (6)
- # clojure (35)
- # clojure-europe (3)
- # clojure-norway (2)
- # clojurescript (4)
- # conjure (10)
- # cursive (8)
- # data-science (78)
- # fulcro (23)
- # graphql (10)
- # helix (2)
- # luminus (1)
- # off-topic (50)
- # other-languages (1)
- # pathom (8)
- # re-frame (9)
- # reagent (9)
- # reitit (1)
- # rewrite-clj (6)
- # shadow-cljs (134)
- # tools-deps (53)
- # vscode (1)
- # xtdb (4)
I took a stab at rewriting https://github.com/guns/vim-clojure-highlight, but I ran into trouble trying to only eval code when conjure was connected to a session I ended up using a timer loop and checking the nrepl client state for a session key, but that feels dirty? Anyone know of some better solution I'm overlooking? here's the lua code I've got so far: https://github.com/Pancia/dotfiles/blob/master/lib/vim/conjure-highlight/lua/conjure-highlight/main.lua#L6
I actually had a Todo item for this so this is awesome, I'll take a look when I'm back from my holiday and back in code mode
So I was using this in a project that had a var defined as just |
, which caused the plugin to crash and all syntax highlighting to break
I first figured out how to try / catch and restore the syntax https://github.com/Pancia/dotfiles/commit/347e6022b1835405cd762b06abbbaf90d93ca650, and then where/how to escape that character https://github.com/Pancia/dotfiles/commit/ae08a01afb11242b86bc03af723cefb84bf3d71a
I figured I would inform you in case you try to do anything with this, but also to check if you know any better way around this problem