This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-31
Channels
- # aleph (12)
- # announcements (4)
- # asami (7)
- # babashka (20)
- # beginners (92)
- # calva (74)
- # clj-kondo (8)
- # cljdoc (70)
- # clojure (47)
- # clojure-dev (29)
- # clojure-europe (27)
- # clojure-nl (7)
- # clojure-norway (3)
- # clojurescript (7)
- # cursive (2)
- # datomic (1)
- # emacs (8)
- # events (5)
- # fulcro (36)
- # gratitude (4)
- # humbleui (25)
- # introduce-yourself (1)
- # lsp (26)
- # malli (6)
- # missionary (8)
- # nbb (50)
- # off-topic (9)
- # pathom (2)
- # pedestal (3)
- # portal (32)
- # practicalli (5)
- # reitit (5)
- # releases (1)
- # ring (6)
- # shadow-cljs (87)
- # sql (31)
- # tools-deps (26)
- # vim (3)
- # xtdb (15)
Does anyone know why lsp-mode won't respect :cljfmt :indents option? I have .lsp/config.edn in the project root. It has something like:
{:cljfmt {:indents
{my-macro [[:inner 0]]}}}
Now, I expect (and I think it used to work) that if I run M-x lsp-format-buffer
it would format it this way:
(my-macro foo bar
(let [],,, )
but it still does this:
(my-macro foo bar
(let [],,, )
Anyone knows how to diagnose and fix this?@UKFSJSM38 I figured it out
I'm using worktrees, and when you have a tree like this:
.
└── work
└── my-project
└── worktree 1
└── worktree 2
It expects the /.lsp/config.edn to be at my-project, not at "worktree 1" level. I dunno know why though. Maybe because there was /.lsp folder there already. Maybe I should try removing it.
nope, deleting it doesn't help. I had to to remove the root folder "my-project" from the workspaces.
it got confused because there was a workspace at "my-project" root, and then "sub-projects"/workspace folders inside.