Fork me on GitHub
#lsp
<
2021-11-24
>
nate00:11:38

is there a refactoring for sorting the keys in a map literal?

; Before
(def person
  {:height 72
   :age 42
   :weight 22})

; After
(def person
  {:age 42
   :height 72
   :weight 22})

ericdallo00:11:39

no, feel free to open a feature request

nate00:11:10

cool, will do

1
borkdude13:11:14

@ericdallo Idea: LSP already shows the amount of tests next to a var in emacs. It could also show the amount of specs for a function

ericdallo13:11:17

specs you mena s/spec ? any examples?

borkdude13:11:37

clojure spec yes

borkdude13:11:43

or whatever

ericdallo13:11:49

I don't get it, the idea would be to show the count of specs that function uses inside it? how a spec if related to a function?

borkdude13:11:00

we could add that to clj-kondo, perhaps it doesn't have this yet

ericdallo13:11:50

probably we need to add to kondo indeed