This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-09
Channels
- # announcements (3)
- # babashka (1)
- # beginners (66)
- # clj-kondo (2)
- # cljdoc (46)
- # cljs-dev (7)
- # clojure (16)
- # clojure-australia (2)
- # clojure-china (1)
- # clojure-europe (3)
- # clojure-hk (1)
- # clojure-japan (1)
- # clojure-korea (1)
- # clojure-my (1)
- # clojure-sg (1)
- # clojure-taiwan (1)
- # clojurescript (4)
- # community-development (53)
- # conjure (6)
- # css (7)
- # cursive (6)
- # datascript (1)
- # datomic (5)
- # exercism (5)
- # graalvm (12)
- # helix (8)
- # jobs-rus (1)
- # kaocha (1)
- # lsp (19)
- # nrepl (1)
- # overtone (2)
- # pedestal (1)
- # polylith (2)
- # portal (2)
- # react (25)
- # reagent (1)
- # shadow-cljs (7)
- # spacemacs (8)
- # vim (9)
Hi all, I'm a neovim user with a conjure/built in lsp config for clojure. I'm using the promesa library and see a lot of this "unresolved symbol" error while using promesa's p/let
macro despite the code otherwise working. Understandably it's probably due to the editor not know what the macro actually does, but I am not sure how to resolve this.
Add this to your project:
.clj-kondo/config.edn
{:lint-as {custom-ns/let clojure.core/let}}
Thanks @UKFSJSM38 that seems to have done the trick. While looking in .clj-kondo I saw that there is .clj-kondo/funcool/promesa/config.edn
which was presumably installed with the library which has all of the :lint-as
settings I probably eventually want. Is there a way to make Neovim detect this instead?:
The importing section https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#importing looks like what I want to do. So it would appear I just need to change my .clj-kondo/config.edn
to
{
; :lint-as {promesa.core/let clojure.core/let}
:config-paths ["clj-kondo/funcool"]}
but that doesn't seem to be working