Fork me on GitHub

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}}


Being custom-ns the correct p/let namespace


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?:


Or as well as the new .clj-kondo/config.edn I just added


The importing section 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


Oh I really am silly, this is what it should have been:

{:config-paths ["funcool/promesa"]}
All working now!


Yeah, that's correct sorry for the delay, good you already found it

❤️ 1