lsp

quoll 2025-02-18T22:01:54.377169Z

Hi. I'm wondering if there are any docs on how to set up configuration for clj-kondo in lsp, please? All I can find are references to .clj-kondo/config.edn, which lsp-clojure doesn't pick up, or .lsp/config.edn which is either not being picked up, or I've misconfigured.

borkdude 2025-02-18T22:03:03.897959Z

clj-kondo config should go into .clj-kondo/config.edn` in your project, not globally

quoll 2025-02-18T22:03:17.587879Z

Yes, that's right

borkdude 2025-02-18T22:03:34.951489Z

that should just work

quoll 2025-02-18T22:03:39.675569Z

oh

borkdude 2025-02-18T22:03:48.534269Z

even without restarting lsp

borkdude 2025-02-18T22:04:14.973099Z

but it could be that you have misconfigured the clojure-lsp project root, perhaps

quoll 2025-02-18T22:04:58.499929Z

well, it works if I run clj-kondo from the cli, so I'm reasonably comfortable that the clj-kondo config is correct

quoll 2025-02-18T22:05:37.152519Z

how does one configure the clojure-lsp project root, please?

borkdude 2025-02-18T22:06:08.971859Z

maybe you can try lsp-workspace-folders-remove (I assume you're using emacs, right?)

borkdude 2025-02-18T22:06:30.077909Z

and after that I think lsp will ask you to reconfirm the project root

quoll 2025-02-18T22:08:27.451299Z

I tried this (unexpectedly, it suggested my maven repo directory, but I removed the root of the project instead), but it hasn't suggested anything to me

borkdude 2025-02-18T22:08:53.268639Z

perhaps try lsp-workspace-restart

borkdude 2025-02-18T22:09:51.430579Z

try lsp-workspace-remove-all-folders

borkdude 2025-02-18T22:09:56.747919Z

and then restart

quoll 2025-02-18T22:12:31.158049Z

this worked. Thank you!

🎉 1