This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-08
Channels
- # announcements (3)
- # babashka (3)
- # beginners (25)
- # calva (12)
- # cider (58)
- # clara (11)
- # clj-kondo (19)
- # cljsrn (2)
- # clojure (84)
- # clojure-austin (1)
- # clojure-europe (5)
- # clojure-nl (4)
- # clojure-spec (23)
- # clojure-uk (53)
- # clojuredesign-podcast (5)
- # clojurescript (24)
- # core-async (57)
- # cursive (16)
- # datomic (39)
- # emacs (1)
- # fulcro (40)
- # funcool (2)
- # graphql (17)
- # jackdaw (31)
- # jobs (2)
- # joker (3)
- # malli (7)
- # off-topic (12)
- # re-frame (9)
- # reagent (2)
- # reitit (1)
- # ring (4)
- # shadow-cljs (170)
- # sql (36)
- # tools-deps (5)
- # xtdb (20)
Does anybody use parinfer with calva? I can't get it to work as long as calva is enabled.. (tried disabling calva-fmt and changing options...)
Indent mode behaves strange.. eg in following form: (ns x.util-test (:require [x.util :as xu] [clojure.test :refer :all])) - when I press enter after xu], line is correctly added but cursor ends up on start of that new line - when I press enter between last two closing parens, line is added below, and cursor ends up on first colum of original line
> - when I press enter after xu], line is correctly added but cursor ends up on start of that new line Yes, Calva disables this in order to predictably be able to place the cursor right, when its auto-indent is enabled. We might be able to make it conditonal. > - when I press enter between last two closing parens, line is added below, and cursor ends up on first colum of original line This is Paredit behavior, regardless of Calva I think.
@nbdam: I’ve built a version of Calva that doesn’t move the cursor to the end of the line when Calva is not the auto-indentor. Here: https://964-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.45-full-autoindent-off-5eb6ae6e.vsix
So if you install that and have calva.fmt.formatAsYouType
off, you should be able to use Calva with Parinfer.