Fork me on GitHub
#vim
<
2021-07-17
>
Timofey Sitnikov23:07:00

I finally setup NeoVIM LSP/nvim-compe/clojure_lsp and it is amazing but I am getting lots of warnings. The Home definition is a Fulcro macro. Is there a way to acknowledge these errors? I know in C++ you can simply (void)unused_variable. Is there anything like that in Clojure? Any recommendations on how to handle it?

dave03:07:19

You can rename the var to _props to acknowledge that it isn't used. That should satisfy clojure-lsp.

dave04:07:09

In the Clojure source code, put a _ in front of the var it is complaining about. The warning should go away.

3
Timofey Sitnikov10:08:01

@U0AHJUHJN, sorry for the late response but it works.

Chase23:07:27

Setting up some settings in a .clj-kondo config file. I think that is what you are asking about. https://github.com/clj-kondo/config/pull/12