This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-29
Channels
- # 100-days-of-code (2)
- # bangalore-clj (1)
- # beginners (141)
- # cider (33)
- # cljs-dev (13)
- # cljsjs (7)
- # cljsrn (1)
- # clojure (88)
- # clojure-conj (3)
- # clojure-dev (24)
- # clojure-italy (11)
- # clojure-nl (4)
- # clojure-russia (1)
- # clojure-sanfrancisco (1)
- # clojure-spec (4)
- # clojure-uk (53)
- # clojurescript (65)
- # core-logic (2)
- # cursive (28)
- # datomic (33)
- # duct (2)
- # emacs (3)
- # figwheel-main (9)
- # fulcro (44)
- # hoplon (6)
- # leiningen (144)
- # mount (1)
- # nrepl (21)
- # off-topic (102)
- # onyx (2)
- # other-languages (5)
- # pathom (6)
- # planck (3)
- # portkey (1)
- # re-frame (7)
- # reagent (5)
- # reitit (17)
- # shadow-cljs (24)
- # spacemacs (16)
- # tools-deps (64)
- # uncomplicate (2)
- # vim (22)
is there a way to get a setup where have two splits: a left split with clojure code, that you can eval and have the output show up in the right split?
when I eval stuff with Fireplace it only shows up in the status bar and I donβt find that all to useful π
it gives you a more convenient way to use :terminal
buffers, including bindings for sending input to the terminal buffer. apparently there is support for REPLs, although i don't see clojure in the list, so it might take a bit of finagling to get working fully
I haven't tried it, but I love his other plugins. Also author of neovim gets points just for that π
I'm a bit pedantic about these things, but in Vim, if you have a list of ":require's", is there a way to sort the list? (like in Java, where the "imports" can be sorted)
@dharrigan if you're using rust-parinfer, then :sort
works quite well.
@dharrigan otherwise, you're going to want to use nvim-refactor.nvim's clean-ns functionality.
wait, that should be https://github.com/clojure-vim/clj-refactor.nvim/
while we're on the subject of pedantic formatting of ns requires: i use clj-refactor.nvim's "clean ns" binding all of the time and quite enjoy it, but i always find myself adjusting the vertical alignment after i use it. for example, i would adjust this:
[foo.bar.baz :as fbb]
[some-longer-thing :as slt]
to be like this:
[foo.bar.baz :as fbb]
[some-longer-thing :as slt]
does anyone else do this? seems like something i could contribute to clj-refactor, at least as an option that's disabled by defaultI hate vertical alignment. π We wrote a regex at some point to destroy it after intellij ruined all the code.
but when you have a long list of ns requires, i find it quite helpful. then again, i can be very pedantic about stuff like this in general π
maybe you could use a mapping that runs clean ns
for you then aligns it with something like https://github.com/junegunn/vim-easy-align