This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-29
Channels
- # aleph (1)
- # announcements (10)
- # aws (1)
- # beginners (110)
- # calva (4)
- # cider (26)
- # clj-kondo (14)
- # cljdoc (24)
- # cljsrn (16)
- # clojure (76)
- # clojure-europe (3)
- # clojure-ireland (2)
- # clojure-italy (15)
- # clojure-nl (8)
- # clojure-spec (23)
- # clojure-sweden (4)
- # clojure-uk (92)
- # clojurescript (37)
- # cursive (19)
- # datomic (59)
- # duct (1)
- # emacs (4)
- # fulcro (7)
- # graalvm (7)
- # graphql (1)
- # hoplon (69)
- # jobs (4)
- # jobs-rus (1)
- # kaocha (2)
- # leiningen (5)
- # luminus (2)
- # pathom (8)
- # reagent (6)
- # reitit (11)
- # spacemacs (12)
- # sql (3)
- # tools-deps (9)
- # unrepl (1)
- # vim (57)
That's about ecosystem/popularity I guess :) Someone is contributing that in the first place
Adding support for both via 'makeprg' is pretty easy: &l:makeprg='joker --lint %; clj-kondo --lint %'
true true, but that's a barrier to entry, a hurdle that someone (at the moment) has to configure locally (and know how to do that!)
so, having ALE (which is tasty sounding :-)) do that automagically, with no thought required is a win for adoption
For sure. My point is basically that adding support to any of them should be roughly as simple as that.
@tomi.hukkalainen_slac still curious why you'd need it
If anyone has any feedback for my quick doc addition to Conjure or wants to try and break it, I'm all ears! https://github.com/Olical/conjure/pull/38 Basically showing a one line doc as Neovim virtual text when you CursorHold on a form. I lookup the symbol at the head of the form so it's not what's directly under your cursor. Definitely need to work some issues out but hopefully it's roughly what people would expect / want! (I'll also be giving eval the same treatment when the output is really small to avoid opening the log window in every case)
Anyone using deoplete (and async-clj-omni) with clj? I'm having a hard time figuring out how to show completion with this setup. If I use lein repl
it's all fine, but doing the same with clj won't show suggestions for autocompletion.
@dharrigan make sure you're loading cider-nrepl into your clj-started repl.
https://github.com/clojure-vim/vim-jack-in I wrote this to automate that problem
:nrepl {:extra-deps {nrepl {:mvn/version "RELEASE"}
cider/cider-nrepl {:mvn/version "RELEASE"}}
:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}
vim-jack-in uses dispatch to start it outside of vim. I have it configured to create a new tab on my terminal.
@dharrigan fwiw, the nrepl started like that works for me
okay, I'll investigate, I'm doing something wrong, thanks for the verification! 🙂
[{'status': ['done', 'unknown-op', 'error'], 'id': 'fireplace-generic-1559159694-8', 'session': '63c7e218
-e607-424c-b8b7-45607635a003', 'op': 'cider-version'}]
are you using your vim-jack-in plugin with the deps.edn I provided to get the suggestions?
interestingly, if I do this clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.21.1"} }}' -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
and launch vim it works
I'm not sure what nrepl you are connecting to, but it isn't the same one that your rebel is connected to.
(let [prefix "edge.load_"]
(doseq [[prop _]
(filter
(fn [[prop _]]
(.startsWith prop prefix))
(into {} (System/getProperties)))]
(require (symbol (subs prop (count prefix))))))
I have this little devil in edge, then bin/rebel
does this if you pass the --nrepl
flag:
-J-Dedge.load_nrepl=true
which is the same as -A
with :jvm-opts