Fork me on GitHub
#conjure
<
2021-07-20
>
GitHub10:07:40

[Olical/conjure] Issue opened by jakesunplugged

⬆️ 2
Olical09:07:59

I replied to the issue, but I think this will be people on Neovim 0.4 and below when 0.5 is now the stable release. The new Conjure release relies on the window border feature by setting a key in a map. The previous version of neovim without this feature throws an error if there's an extra key in the map 🙃

Olical09:07:04

So the path right now is use the previous version of Conjure or use the latest version of Neovim until I get a chance to push out a compatibility fix. The fix: Don't insert the "border" key in log.fnl if the conjure#log#hud#border option is "none".

rafaeldelboni12:07:12

Since upgrade to 0.5 is (in 99% of the cases seamless) are you considering locking conjure to work with only 0.5.*?

rafaeldelboni12:07:28

Sorry if this already been discussed

Olical12:07:01

Not right now, but if I had to rely on some features that just aren't optional then maybe? But I don't see that happening, if I can make things backwards compatible I should for now really. But yeah, upgrading to 0.5 should be completely fine and easy for everyone unless there's some weird restrictions on some platforms.

rafaeldelboni12:07:35

Agree, out of curiosity, how the backwards compatibility impacts the code quality and developer experience? I never did something like this, but looks very hard to making new features thinking about backwards compatibility.

Olical12:07:41

Depends on the feature, if I required treesitter for all form selection and required it for some fundamental reason: HARD. Optionally adding borders to windows if you have that feature: EASY. It's not that bad really, maybe years of supporting 10s of versions of web browsers prepared me for feature detection 😅

Olical12:07:00

I just dropped the ball on this one because I was in a hurry and merged a PR that added that code

Olical12:07:21

I also didn't realise an extra key in a map would throw an error, that's kinda annoying.

Olical12:07:31

Like, just ignore the key, please

rafaeldelboni12:07:12

Oh the browser hell, I have some bad memories about it, thanks for your explanation. Yeah maybe you could do some polls about what version of nvim people are using and when you reach a good percentage that would be a good moment to drop 0.4 support or something like that.

Olical10:07:02

Fixed this on develop! I check for Neovim < 0.5 and don't insert the :border key if it's older.