mogge and welcome @elegoff760
đź‘‹
Morning
Morning!
Morning!
morning!
morning
@dharrigan You’re involved with the clojure-lsp, right?
very so slightly. I package it up for Arch Linux and last night I did a small PR to include <http://clojure.java.io|clojure.java.io>
(I've just started using clojure-lsp, very impressed!)
that is as far as my involvement goes (atm!)
I started using it today, it solves my last emacs-clojure problems, I believe.
Thanks to @borkdude for tweeting this link yesterday: https://emacs-lsp.github.io/lsp-mode/tutorials/clojure-guide/
I use it in (neo)vim with CoC and Conjure. It's winning combination (for me!)
@slipset (and any others) what do you feel that clojure-lsp gives you that CIDER doesn't? It does look like it replaces from clj-refactor things, but some of them are moving into CIDER anyway
(just wondering if it is worth switching over or adding to my CIDER confing)
find-usages
and rename-symbol
🎉 https://twitter.com/borkdude/status/1356545209157488640
(find-definition for locally defined things)
I’ve been firing up cursive for this
So, yes, it replaces two things from clj-refactor that are currently b0rken for me.
Don't use my name in vain
(haha, kidding, of course)
I didn’t I said b0rken, not borken.
ah, phew
Btw, the above find-definition for a local is one thing CIDER doesn't do. Since you cannot find these locations using runtime information in Clojure AFAIK. But clj-kondo exposes it and clojure-lsp uses it :)
But thanks for posting that link yesterday, it is referred to from the clojure-lsp docs, but not “in your face”
Yeah, I think I had tried out lsp some years ago but it was relatively flakey back then. It seems a lot better now
Oh, and the lenses
although I had to delete some elpa dir stuff to get it worked correctly
the lenses rock!
what is the lens stuff?
It shows how many references a symbol has.
You have it in your gif as well.
The “2868 references” thingy
Ah I had already enabled that (I think by copying some snippet), cool
Haven’t seen that in Cursive.
This is useful for removing unused vars. Similar to carve, but more in your editor, cool!
Exactly
And the opposite, it gives you candidates for optimization.
Making the id
fn above slow, would have large impact.
right
so cool
And it’s clickable!
or at least it invites you to click on it.
lsp-find-references will give you all refs
and that list is clickable as in that it works
I haven’t tried lsp in Emacs in a while. Are you using lsp-mode or eglot?
lsp-mode I believe
Also, the bread-crumbs (which I initially wanted to turn off) show if there are linting errors, both in the namespace and the current fn.
what's that screenshot showing @slipset, the :-
and the (s/defn)
- a library that allows you to define a return type? and argument types?
plumatic.schema
`
ta
I’ll have to give it another go
Thanks for the kind sponsoring on Github @slipset
Not much, but you’re becoming very important to my clojure well being.
🆒
sounds like it is worth adding to my config