This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-27
Channels
- # announcements (3)
- # babashka (16)
- # beginners (177)
- # calva (102)
- # cider (2)
- # clj-kondo (12)
- # clojars (10)
- # clojure (91)
- # clojure-argentina (3)
- # clojure-australia (5)
- # clojure-europe (16)
- # clojure-nl (1)
- # clojure-uk (10)
- # clojurescript (73)
- # community-development (8)
- # cursive (9)
- # depstar (7)
- # fulcro (5)
- # helix (1)
- # introduce-yourself (1)
- # jobs-discuss (18)
- # lsp (32)
- # luminus (1)
- # malli (2)
- # music (4)
- # off-topic (20)
- # pathom (19)
- # polylith (15)
- # re-frame (4)
- # reagent (6)
- # ring (13)
- # sci (36)
- # shadow-cljs (7)
- # spacemacs (4)
- # sql (3)
- # tools-deps (112)
- # vim (21)
I actually just rewrote my whole vimrc in fennel https://github.com/Grazfather/dotfiles/commit/c6a44d2a9c16724ef2d8b5447510b5a44609bca6
I coincidentally use #babashka to setup my dotfiles
slowly moving things from my .vimrc
to init.lua
… but since it is still early part of me is thinking go full fennel… 😉
Skip lua!
I've also been tempted to start porting my vimrc to Fennel. I have a really big vimrc, though. Part of me thinks I could do it incrementally, but I don't know if I really want to live in a half-in, half-out world for the months/years it would take me before I could port the whole thing. 😑
I second skipping the lua step. Also, you don't need to port the whole thing over. Just start with new stuff in fennel
@grazfather your helper functions in macros.fnl
are so good i might switch to nvim now
Thank you! I was inspired by this post: https://www.reddit.com/r/neovim/comments/op39lf/showcase_of_idiomatic_configuration_using_fennel/ but i wrote my own because I wanted variadic macros so that I could more nicely group them
I'm on the fence about this lua stuff. Vim is horrible to parse but it's a custom dsl just for vim configs. That's quite handy!
I had to do some but with my macros you don’t have to, at least for most bindings
since in lisp >.+*
etc are legal in symbol names
so (set! <leader>ef ":something")
instead of `
vim.crap.set("<leader>ef", ":something")
lua string escaping < vim array parsing
and writing functions in fennel >> writing functions in viml
I'm considering porting the VimL functions and other complex code to Fennel, but keep basic config (`*map`, set
, let
) in VimL
That’s a reasonable first step
I did it in one fell swoop and it took > 4 hours but that included the time it took me to write the macros