This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-27
Channels
- # babashka (35)
- # beginners (85)
- # cider (14)
- # clojure (115)
- # clojure-europe (15)
- # clojure-norway (2)
- # clojure-portugal (9)
- # clojure-uk (3)
- # clojurescript (28)
- # conjure (35)
- # data-science (10)
- # datomic (4)
- # graalvm (28)
- # holy-lambda (7)
- # hyperfiddle (2)
- # jobs (2)
- # joker (4)
- # malli (9)
- # meander (6)
- # nbb (6)
- # off-topic (23)
- # pathom (3)
- # remote-jobs (1)
- # shadow-cljs (158)
- # sql (15)
- # tools-deps (35)
- # vim (5)
Is there a way to open a paren and have the closing paren be inserted automatically?
For instance if I type this (
then I expect to end up in insertion mode like this: (|)
where |
is the cursor
if you use one of the structural editing tools like https://github.com/guns/vim-sexp or https://github.com/eraserhd/parinfer-rust they do it for you. keep things always balanced. i use the latter.
should handle deletion of the open paren too
https://github.com/windwp/nvim-autopairs does this for many character pairs and allows simple definition of your own specific rules as to when to create pairs
Vim-sexp (and tpope’s sexp-mappings) are great and do automatic pair insertion