This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-15
Channels
- # announcements (2)
- # babashka (27)
- # beginners (53)
- # boot (3)
- # calva (5)
- # cider (1)
- # clj-kondo (46)
- # cljdoc (38)
- # cljs-dev (40)
- # cljsrn (1)
- # clojars (5)
- # clojure (61)
- # clojure-europe (124)
- # clojure-germany (3)
- # clojure-losangeles (6)
- # clojure-nl (12)
- # clojure-uk (11)
- # clojurescript (44)
- # clojureverse-ops (7)
- # datomic (13)
- # events (3)
- # introduce-yourself (1)
- # jackdaw (5)
- # lsp (115)
- # malli (1)
- # off-topic (16)
- # polylith (2)
- # releases (1)
- # remote-jobs (6)
- # shadow-cljs (10)
- # sql (2)
- # timbre (1)
- # tools-deps (30)
- # vim (34)
- # xtdb (20)
Are you going to fix the naming issue that I saw someone bring up on Twitter way back when, and rename it to “CoC au NVim”?
i don’t know french but i bet i would laugh if i did lol
ah thank you! that’s very good, haha
When I saw it on Twitter referencing the coc.vim
project as a missed naming opportunity of CoC au Vim
it made me chuckle…
here’s the initial version of coc-clojure: https://www.npmjs.com/package/coc-clojure
please let me know what you think
I'm trying it on (filter even? (map inc (range 10)))
and getting `Error on request (runCommand): Vim(return):Error invoking 'runCommand' on channel 3 (coc):
Command: lsp-clojure.thread-last not found `
Looking at it now that I'm not at my computer, I think it's supposed to be lsp-clojure-thread-last, with a dash and not a period
but if I just the code action thing I already use with coc.nvim and clojure-lsp (`ga`) it gives me the thread last option and the desired behaviour
That’s my bad, I had it with the dot earlier and changed it in the code but not the docs
Ok, that seems to work. I have to be on an opening or closing paren, not just anywhere in the form like the built in coc.nvim functionality but that's cool
This is an issue with #lsp, which I also noticed and have opened pr to fix! https://github.com/clojure-lsp/clojure-lsp/pull/483
Interesting. Something already makes it work when I use coc.nvim's builtin code-action call to the lsp
Oh? It doesn't for me
Interesting. Like in that example I am using if I have it anywhere in the form it works but it's actually threading it a little differently. The action does say thread-last-all though. Maybe that's something different
Ah yeah, that’s the difference between thread and thread-all
Maybe something is broken on my end
I'm using conjure. Maybe coc-conjure
is communicating something? No clue what I'm talking about at this point though tbh
I would actually thread it a 3rd different than both of these suggestions too. lol. I always do wonder if my clojure looks way funkier than others
Haha yeah I prefer wrapping all of my threaded functions in parentheses
I’ll look into the conjure plugin to see what's happening
Yeah I would go (->> (range 10) (map inc) (filter even?))
but I'm getting (->> 10 range (map inc) (filter even?))
with the built in thread last all
and (->> (map inc (range 10)) (filter even?))
with the coc-clojure plugin.
But that's all subjective at this point. Anywho, thanks again for building this. I'll be using it for sure
You’re welcome! So glad you like it. Please feel free to open issues or post here if you have wants or find bugs
So now basically we are going to be able to do anything that clojure-lsp can do on emacs?
That’s the goal!