summaryrefslogtreecommitdiff
path: root/dot_config/nvim/fnl/toast (follow)
AgeCommit message (Collapse)AuthorLines
2024-08-07nvim: rework mixed-table macroChloé Vulquin-10/+62
I didn't like that you couldn't keep mixing and matching, so I made it so you can. In the process, I also implemented even?, odd?, filter, mapcat, flat, and concat. Some of them didn't end up needing to exist, and the entire :toast. namespace does need to be cleaned up. Then again, it's not like I'm selling this like an alternative stdlib. I should really try and port all of clojure.core though, it'd be funny.
2024-08-06nvim: rework lsp moduleChloé Vulquin-0/+15
There's still some improvements to be made, but this is cleaner. We lose global caps defaults, but those made no sense to begin with. We do also lose caps overrides, I'll add them back in if I need them. In the process, we gain `every?` and `executable?`. There's also a misc comp print vim.inspect to vim.print change.
2024-07-26nvim: update :toast.core/assocChloé Vulquin-2/+2
Thank you Olical for updating fennel! Move to `(set (. t k) v)` for overwriting non-insertion list elements. Also don't bother specifying a `k` for the insertion case, seeing as we know for a fact it's just the final element.
2024-07-26nvim: rename tbl to mixed-table, import it as "·"Chloé Vulquin-4/+5
I swear I'm not succumbing to the APL, I just couldn't find a better symbol.
2024-07-24nvim: continue fennel portingChloé Vulquin-14/+53
Yeah I'm lazy but these are my dotfiles. A quick summary: * plugins.lsp.attach is now ported * toast.core is reorganized * new nil? and number? checks * new assoc function * new toast.table.unpack function (cross lua compat) * toast.macros.tbl now uses assoc instead of from-pairs and group * apparently I had forgotten to add {pre,post,init}.fnl before, so that's done now Still todo: ftplugin, colors.
2024-07-24nvim: add empty? and update groupChloé Vulquin-11/+18
Until now you couldn't do `(tbl 1 2)`. Now you can.
2024-07-24nvim: rewrite config in fennelChloé Vulquin-0/+91
One file isn't done, and there's also the question of ftplugin and co. One step at a time though, eh?