06:53
okcan_ has quit [Ping timeout: 252 seconds]
07:28
<
FromGitter >
<Dan-Do> +1 :vote: for libmdbx
09:30
taupiqueur has joined #crystal-lang
09:39
<
FromGitter >
<anniiii:matrix.org> I hoped to not having to specify them but I can work with that
09:41
<
FromGitter >
<anniiii:matrix.org> bc. like this i cant just switch case on the provided ones and instead have to check for each if its default or provided
11:06
Stephie- is now known as Stephie
12:04
<
FromGitter >
<paulocoghi> :facepalm: Thanks
12:43
taupiqueur has quit [Quit: taupiqueur]
20:35
walez has joined #crystal-lang
20:38
<
walez >
hey togehter, did someone use Neovim/Nvim for Crystal development and can tell me some good plugins or settings for nvim.
20:40
<
walez >
@Blacksmoke16: Thanks for the link, that is a good point to start with, i will check it.
20:43
<
walez >
@Blacksomke16: ok with this vim Plugin I have better Synatax highlighting now. Thanks :D
20:43
<
FromGitter >
<Blacksmoke16> 👍 nice
20:47
<
riza >
it works well, I use it
20:47
<
riza >
it's not perfect but it does fine
20:49
<
walez >
@roza and @ spuun: did you have run a lsp in Neovim too? i only find scry but i dont know if its support by nvim-lspconfig
20:54
<
riza >
I do run an lsp, but I'm using gvim not nvim
21:03
<
walez >
@rizza: i will check it and if its work well i can post the nvim config for the lsp part.
21:19
walez has quit [Quit: Leaving]
22:29
sagax has quit [Ping timeout: 252 seconds]
23:28
<
SamantazFox_ >
How can I access a method's Annotation outside of said method?
23:30
<
FromGitter >
<Blacksmoke16> OR better yet
23:30
<
FromGitter >
<Blacksmoke16> you can use `#find` (or `#select`) to the method(s) with the annotation
23:31
<
FromGitter >
<Blacksmoke16> depends on what you're wanting to do exactly id say
23:33
<
SamantazFox_ >
The goal would be to have a module, with multiple methods in it, and each of those methods have annotations that stores metadata
23:34
<
SamantazFox_ >
It's for the different rouotes of invidious ^^
23:34
<
FromGitter >
<Blacksmoke16> coughswitchtoathenacough
23:34
<
SamantazFox_ >
haha xD
23:34
<
SamantazFox_ >
not that easy
23:35
<
FromGitter >
<Blacksmoke16> neither is maintaining the current version 😉, could do it over time as you could run both at once
23:35
<
SamantazFox_ >
We're currently cleaning the code
23:35
<
SamantazFox_ >
that's a prerequisite before moving anywhere
23:36
<
FromGitter >
<Blacksmoke16> nice, how would this module with annotations work? like they're class methods that map to a route?
23:38
<
SamantazFox_ >
currently, we have the following things:
23:38
<
FromGitter >
<Blacksmoke16> be pretty easy to build that out with a macro, just need to move some of the data into the annotation
23:39
<
SamantazFox_ >
and finally, the methods themselves, store in modules
23:40
<
SamantazFox_ >
<Blacksmoke16> "be pretty easy to build that out with a macro" <- yep, that's the idea
23:40
<
FromGitter >
<Blacksmoke16> ahh where #2 generates kemal based routing stuff?
23:41
<
SamantazFox_ >
that's something that was initiated by Matthew McGarvey, one of the Lucky devs
23:41
<
SamantazFox_ >
And I'd like to improve it a bit in order to deduplicate authentication code, e.g
23:44
<
SamantazFox_ >
(Though, currently I'm working on rewriting the database code, and this kind of improvements will be for the future)
23:46
<
FromGitter >
<Blacksmoke16> i think i'd be easier if you used classes with a parent type, or included another module into the controllers
23:48
<
FromGitter >
<paulocoghi> 😄 😄 😄 😄
23:49
<
FromGitter >
<Blacksmoke16> should be enough to get you started
23:49
<
FromGitter >
<Blacksmoke16> ofc could have diff annotations for each method or whatever :shrug: