Fork me on GitHub
#conjure
<
2020-08-16
>
adambrosio01:08:51

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

Olical10:08:54

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

Olical10:08:59

Thanks for taking a look!

adambrosio18:08:01

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

Olical20:08:19

Whaaaaat that's amazing

Olical20:08:41

You mean crash vim-clojure-highlight or conjure?

Olical20:08:22

Ah, highlight

Olical20:08:34

Thanks for the tip!

Olical10:08:24

Oooo this looks cool! Again, will have a look when I'm back from my holiday ☺️