This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-07
Channels
- # announcements (1)
- # babashka (79)
- # beginners (177)
- # cider (27)
- # cljdoc (24)
- # cljs-dev (4)
- # clojure (43)
- # clojure-norway (7)
- # clojure-uk (3)
- # clojurescript (52)
- # conjure (12)
- # cryogen (1)
- # cursive (5)
- # data-science (7)
- # datahike (1)
- # datomic (1)
- # dirac (2)
- # helix (14)
- # jobs-discuss (130)
- # juxt (4)
- # liberator (4)
- # malli (2)
- # mxnet (2)
- # news-and-articles (1)
- # nrepl (19)
- # off-topic (27)
- # pathom (3)
- # practicalli (1)
- # re-frame (4)
- # reagent (2)
- # ring (7)
- # shadow-cljs (21)
- # spacemacs (11)
- # vim (38)
- # xml (2)
- # xtdb (17)
@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
clojure
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 ?
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.
@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
Yay , I said when I saw that conjure is written in lisp like language that generates lua.
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 ?
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.