This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-05
Channels
- # announcements (1)
- # babashka (5)
- # beginners (151)
- # calva (43)
- # clj-kondo (23)
- # cljdoc (1)
- # cljs-dev (6)
- # cljsrn (10)
- # clojure (60)
- # clojure-australia (1)
- # clojure-europe (26)
- # clojure-gamedev (14)
- # clojure-nl (1)
- # clojure-spec (10)
- # clojure-uk (80)
- # clojurescript (66)
- # clojureverse-ops (4)
- # community-development (7)
- # conjure (8)
- # datomic (15)
- # deps-new (1)
- # docker (27)
- # emacs (2)
- # fulcro (13)
- # honeysql (13)
- # java (5)
- # jobs-discuss (43)
- # lsp (121)
- # luminus (13)
- # malli (1)
- # off-topic (73)
- # pathom (12)
- # polylith (29)
- # practicalli (4)
- # re-frame (35)
- # reagent (44)
- # remote-jobs (5)
- # rewrite-clj (2)
- # sci (7)
- # shadow-cljs (125)
- # sql (4)
- # tools-deps (9)
- # xtdb (5)
Since clojure-lsp public linters now lives in clj-kondo config, clojure-lsp needs to check that in other features like code lens which check that same config key
but I don't need that config, I need the one in user project root or in the home one
oh, yes, that would partially work, but I'd like to make something that doesn't need to restart the server, like check everytime to see if the config changed
so tell me, regardless of the impl function, "I need a function foo that given argument x returns y", then what would this be?
something like (clj-kondo.core/config project-root)
which brings the merged edn of home user clj-config + project clj-kondo config
just making that impl public would work as I'm doing something like:
(defn kondo-config [db]
(kondo.core-impl/resolve-config (io/file (:project-root-uri db)) {}))
sorry, you have to be more specific. the merged config is already in the output of run!
so I don't understand what you're missing yet
Sorry, let me try to be more specific
ā¢ user has lsp running in a project
ā¢ user change clj-kondo/.config of that project or its clj-kondo home dir config changing the :linters clojure-lsp/unusued-public-var
setting, adding a exclude or something
ā¢ next time clojure-lsp process code lens for that file, it will call this new function which would bring the config