I am trying out clojure-lsp, using Spacemacs develop branch. All seems to be working, but I'd like to turn off one of the warnings. I'm working on a library which has a number of defn forms which are not used by other functions within the library (part of the API). For all of these functions, I get an "unused declaration" warning. I've looked in the docs and found how to turn off other warnings, like unused namespace and unused-reference-var, but nothing which seems to be applicable for turning off warnings for unused defn forms.
Hey, we use #clj-kondo for lint, so I think you need to add some config to clj-kondo ignore that lint
take a look at :`clj-kondo` here: https://github.com/snoe/clojure-lsp#initializationoptions
Already looked at clj-kondo, but that does not seem to be the answer. If I run clj-kondo manually, I don't get the warnings and there doens't seem to be anything in the clj-kondo config for unused declarations either. This could also be something specific to spacemacs. According to spacemacs documentation, for the lsp layer, there is the variable lsp-modeline-diagnostics-scope, but trying to set that seems to be generating an error about it having a missing value. It is likely I have something missing/wrong in the setup (Spacemacs develop does not yet 'natively' support clojure-lsp, I had to add it manually).