Fork me on GitHub
#vim
<
2021-07-15
>
Proctor13:07:18

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”?

🐔 8
🙌 2
NoahTheDuke13:07:47

i don’t know french but i bet i would laugh if i did lol

NoahTheDuke14:07:21

ah thank you! that’s very good, haha

Sigve14:07:30

yeah, i had to think for a solid minute before it came to me

Proctor14:07:38

When I saw it on Twitter referencing the coc.vim project as a missed naming opportunity of CoC au Vim it made me chuckle…

NoahTheDuke21:07:17

here’s the initial version of coc-clojure: https://www.npmjs.com/package/coc-clojure

NoahTheDuke21:07:21

please let me know what you think

Chase22:07:07

Cool stuff. I was just exploring all the capabilities that clojure-lsp has.

Chase22:07:25

I'm probably misunderstanding but when I try the thread last example I get an error.

Chase22:07:03

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 `

NoahTheDuke22:07:44

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

Chase22:07:48

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

NoahTheDuke22:07:19

That’s my bad, I had it with the dot earlier and changed it in the code but not the docs

Chase22:07:57

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

NoahTheDuke22:07:24

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

Chase22:07:32

Interesting. Something already makes it work when I use coc.nvim's builtin code-action call to the lsp

NoahTheDuke22:07:33

Oh? It doesn't for me

Chase22:07:57

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

Chase22:07:51

my cursor was on the even?

NoahTheDuke22:07:56

Ah yeah, that’s the difference between thread and thread-all

NoahTheDuke22:07:40

Maybe something is broken on my end

Chase22:07:42

I'm using conjure. Maybe coc-conjure is communicating something? No clue what I'm talking about at this point though tbh

Chase23:07:37

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

NoahTheDuke23:07:54

Haha yeah I prefer wrapping all of my threaded functions in parentheses

NoahTheDuke23:07:10

I’ll look into the conjure plugin to see what's happening

Chase23:07:24

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.

2
Chase23:07:48

But that's all subjective at this point. Anywho, thanks again for building this. I'll be using it for sure

NoahTheDuke23:07:41

You’re welcome! So glad you like it. Please feel free to open issues or post here if you have wants or find bugs

Chase22:07:57

So now basically we are going to be able to do anything that clojure-lsp can do on emacs?

NoahTheDuke22:07:29

That’s the goal!

Chase22:07:54

Very cool! Thanks for doing this.