This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-05
Channels
- # announcements (5)
- # beginners (49)
- # boot (9)
- # calva (34)
- # cider (9)
- # clara (18)
- # clj-kondo (1)
- # cljsrn (7)
- # clojure (196)
- # clojure-dev (4)
- # clojure-europe (11)
- # clojure-france (3)
- # clojure-nl (13)
- # clojure-norway (2)
- # clojure-spec (8)
- # clojure-uk (85)
- # clojurescript (87)
- # clojurex (202)
- # core-logic (6)
- # data-science (6)
- # datomic (9)
- # dirac (1)
- # duct (93)
- # emacs (9)
- # events (1)
- # fulcro (22)
- # hoplon (30)
- # jackdaw (10)
- # keechma (1)
- # leiningen (5)
- # malli (17)
- # off-topic (9)
- # other-languages (3)
- # pedestal (7)
- # re-frame (3)
- # reagent (5)
- # reitit (9)
- # remote-jobs (6)
- # rewrite-clj (80)
- # ring (2)
- # shadow-cljs (191)
- # tools-deps (54)
- # vim (14)
- # xtdb (7)
some more tree-sitter fun? https://github.com/JetBrains/jsitter
Very cool! It even has a Clojure API!
I’ve been looking for a way to fold the current top level form for a while and the recent cpaF
made me realize that I can just do zfaF
to fold the top level form. I now tried to make a mapping for this: noremap <Leader>f zfaF
but it doesn’t work — what am I missing?
nmap works, i think its because the F object isn't native to vim because it comes from sexp. nnoremap ignores the new mappings so it ignores the aF instruction at the end
sweet, that works! Anyone suggestions on how I could turn <Leader>f
into a toggle instead of having to use zo
to open folds?
you could just use <leader>f
to create the fold and then just use za
and the other fold commands to manage them
I could do that…. but think about the mental load of multiple keybindings for something that could be achieved by a single one! 😄