This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-14
Channels
- # adventofcode (38)
- # announcements (42)
- # aws (3)
- # babashka (8)
- # beginners (165)
- # calva (36)
- # chlorine-clover (14)
- # cider (6)
- # clj-kondo (5)
- # cljsrn (33)
- # clojure (27)
- # clojure-australia (1)
- # clojure-czech (1)
- # clojure-doc (1)
- # clojure-europe (26)
- # clojure-nl (6)
- # clojure-spec (6)
- # clojure-uk (3)
- # clojurescript (10)
- # code-reviews (20)
- # conjure (1)
- # core-logic (5)
- # cursive (3)
- # data-science (5)
- # datomic (35)
- # emacs (1)
- # figwheel-main (3)
- # fulcro (10)
- # honeysql (1)
- # introduce-yourself (4)
- # jobs (3)
- # jobs-discuss (4)
- # minecraft (2)
- # missionary (28)
- # nextjournal (3)
- # off-topic (45)
- # pathom (7)
- # polylith (1)
- # portal (22)
- # practicalli (2)
- # re-frame (4)
- # reagent (19)
- # releases (3)
- # remote-jobs (3)
- # reveal (1)
- # rum (4)
- # shadow-cljs (37)
- # spacemacs (14)
- # sql (1)
- # tools-build (7)
- # tools-deps (16)
- # vim (13)
- # xtdb (15)
Any idea how to use vim's https://vimhelp.org/syntax.txt.html#conceal with Clojure's discard macro (`#_`) to shorten the presentation of discarded forms? Something along the lines of:
#_ (prn 1 2 3 4 5) => #_ (prn ...)
#_ [1 2 3 4 5] => #_ [1 2 ...]
#_ {:x 1 :y 2 :z 3} => #_ {:x ...}
is the current vim mode smart enough to recognize #_
followed by any form as a single syntactic unit?
I might be out of date but it doesn't look like it here
I don't know how all the https://github.com/nvim-treesitter/playground stuff works. I played around with it a bit and couldn't quite get the desired result, but my guess is that it's possible. I think it can be done with just plain regex/match groups too. Not sure if such an implementation would be too rough around the edges.. I'm sure a language-aware option would be better.
my understanding is that conceal
is tied to the syntax parsing, so in order to use it you'd need to modify the syntax definition, the hard part would be adding #_
properly to the syntax if it isn't there yet (the current font locking leads me to believe it isn't)
I don't think tree sitter is relevant to this
tree-sitter is a parser, so it could help, but I suspect it isn't a straightforward solution
IIRC, since enabling tree-sitter syntax highlighting #_
-forms (in their entirety) are automatically hightlighted as comments. Maybe you can hook that into conceal? 🤷
kaocha prints nice colourized diffs to my terminal, but :Eval (kaocha.repl/run)
with fireplace.vim prints in monochrome with lots of ugly escapes in. is there a way to get nicely colorized eval output in vim? (test results in a split window or something is acceptable)
I've tried a variety of plug-ins that interpret the ANSI escape codes into colored/bold/etc. text. The best one I've found is a recent one: https://github.com/m00qek/baleia.nvim
Others are mentioned in this issue: https://github.com/Olical/conjure/issues/53