@olical what is necessary to autocomplete to work ? I invoke nreply behind reply, it connects to clojure through .nrepl-port but autocomple is not automatically happening. I have ale installed, I've issued :CocInstall prettier
In ClojureScript + shadow-cljs? Or Clojure on the JVM?
clojure
Oh! So can you get completions with <c-x><c-o>
?
no
And do you have the CIDER middleware installed?
https://github.com/Olical/conjure/wiki/Quick-start:-Clojure this shows how to add CIDER middleware to your nREPL. I'll hopefully be able to provide simpler completions without it in future versions of nREPL π
Then if you want autocompletion you either need CoC + https://github.com/jlesquembre/coc-conjure or deoplete which works automatically.
Or https://github.com/thecontinium/asyncomplete-conjure.vim with asyncomplete.
I think i have cider because fireplace depends on it, but I might be wrong. I'm bringing reply.main as repl
One curiosity if you may. Why vim-iced depends on vim-sexp and conjure does not ? Do you know ? I'm using paredit since ages. Do you use either of those ?
I use vim-sexp, I reaaaaaly like it
I didn't want Conjure to be tied to a paren manipulation tool in any way
So I wrote a bunch of code to find forms for you
Which I will be able to improve and shrink when tree-sitter lands in Neovim's stable releases.
I would imagine iced is relying on sexp's text objects to select forms which is perfectly understandable. Extracting forms from a buffer is a nightmare π
Relevant code in Conjure that does this: https://github.com/Olical/conjure/blob/5cb5e37913fa6fe410ee150f5cd8c75e34b060c4/fnl/conjure/extract.fnl#L47-L107
But yeah, if you can't get completions with <c-x><c-o>
(built in omnicompletion) you probably don't have the cider middleware installed.
I don't inject it automatically right now because I'm trying to be as careful as possible with your process. You might not want CIDER for some reason.
(also not sure how I'd auto inject it properly, I think it requires a future version of nREPL)
Thank you for the valuable information.
You're welcome! If you definitely have CIDER set up though and completion still isn't working do let me know.
I'm very confident it'll work fine once you have the middleware installed.
@olical I was missing cider. Now Ctrl x o is opening completion. Is there a way to make it automatic ?
Yay! You need either coc + coc-conjure, Deoplete or asyncomplete and the conjure plugin for thatt
It's in the help text under autocomplete βΊοΈ
Yay , I said when I saw that conjure is written in lisp like language that generates lua.
Yep :D I write all of my plugins in lisp that I compile to Lua now
And the ConjureSchool script. So nice
ππππβΊοΈ
I've disabled coc suggestion in the past to avoid conflicting with fireplace and forgot about that
Is it possible to open the buffer certain way when opening clojure files ?
hmm, I suppose you could use an autocmd on filetype of Clojure to press ,ls
?
It's not perfect, but it's a start
The HUD won't appear if the bottom of the log buffer is visible.
Do you mean the log buffer?
yes
I've noticed that I like the bottom one and it would be nice it to be opened by default. I have some default actions to clojure file type I'm wondering if I could show the buffer there.