This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-01
Channels
- # announcements (7)
- # babashka (72)
- # beginners (62)
- # biff (1)
- # calva (9)
- # cider (8)
- # clj-kondo (35)
- # clj-otel (8)
- # cljsrn (11)
- # clojure (98)
- # clojure-europe (25)
- # clojure-germany (1)
- # clojure-norway (9)
- # clojure-uk (2)
- # clojured (3)
- # clojurescript (12)
- # conjure (3)
- # core-logic (4)
- # cursive (18)
- # datalevin (9)
- # datomic (5)
- # defnpodcast (2)
- # exercism (1)
- # graalvm (5)
- # gratitude (6)
- # hyperfiddle (3)
- # interop (12)
- # jobs (1)
- # joyride (34)
- # lsp (22)
- # meander (14)
- # missionary (16)
- # nbb (88)
- # off-topic (4)
- # pathom (20)
- # podcasts-discuss (1)
- # polylith (13)
- # portal (10)
- # re-frame (6)
- # releases (2)
- # remote-jobs (2)
- # rewrite-clj (3)
- # shadow-cljs (3)
- # spacemacs (6)
- # vim (24)
š
> Use #re
for regex inside the cljfmt configuration file.
why is #re
needed again? https://clojure-lsp.io/settings/
I'd be interested in honoring this .cljfmt.edn files from other tools, would be useful to know what problem is being solved (vs. vanilla #"regex"
)
.edn files do not support #"regex"
. But personally I wouldn't have chosen a reader tag for that either.
one should however use fully qualified tag names to not conflict with other libraries
bonus question, other than this #re
transformation, does the file have any extra semantic? or is it passed as-is to cljfmt
No extra magic :) Here's the source: https://github.com/clojure-lsp/clojure-lsp/blob/master/lib/src/clojure_lsp/feature/format.clj#L20-L32
Does clojure-lsp
support either recursive resolution of .clj-kondo
config dirs, or the ability to specify it directly? Asking because our team has a project structure which involves sub-projects each with their own deps.edn
and we'd like to define our kondo config in a single place "above" the current working dir
@U0FHWANJK clj-kondo has a different way to solve this.
You should configure each sub-project with its own .clj-kondo/config.edn
and then use :config-paths ["../shared-config"]
to add the shared config.edn
into the mix
https://clojure-lsp.io/settings/
{:cljfmt {:indents {#re ".*" ns [[:inner 0] [:inner 1]]}}
:auto-add-ns-to-new-files? false}
Should that ns
be there? Seems a typoHi, Iām having a small bit of trouble with Emacs and clojure-lsp. When I use lsp-ui-peek-find-definitions
on our clojurescript project it always takes me to the version in target/
instead of src/
Does anyone know what I can configure to stop that from happening?
Try the :ignore-classpath-directorie from here : https://clojure-lsp.io/settings/