This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-14
Channels
- # beginners (74)
- # boot (23)
- # braid-chat (7)
- # cider (5)
- # clara (3)
- # cljsjs (17)
- # cljsrn (1)
- # clojure (105)
- # clojure-austin (9)
- # clojure-new-zealand (34)
- # clojure-poland (2)
- # clojure-russia (177)
- # clojure-uk (41)
- # clojure-ukraine (2)
- # clojurescript (130)
- # component (1)
- # core-async (2)
- # core-matrix (6)
- # cursive (7)
- # data-science (103)
- # datomic (24)
- # emacs (15)
- # funcool (4)
- # hoplon (21)
- # immutant (151)
- # ldnclj (76)
- # melbourne (1)
- # off-topic (8)
- # om (152)
- # om-next (1)
- # onyx (26)
- # parinfer (38)
- # re-frame (13)
- # reagent (14)
- # spacemacs (1)
- # vim (92)
- # yada (1)
@juhoteperi Something like that used to happen for me whenever I changed my project.clj, so even when I would change branches I'd get a lot of lag. I ended up dropping the leiningen support from vim-fireplace so that it wouldn't happen. IIRC it's reloading things to be more correct but I'd rather manage the correctness and have no lag. Not sure if this is what is going on since you use boot but it sounds very similar
@juhoteperi: Yeah, double check you've not installed classpath.vim
. I wonder if clj-async-omni
is causing it? It's possible that checking for a connection might cause something else to happen, I'd have to check. I'm assuming it's me immediately. Just in case.
No classpath.vim, not async-omni, this has been going on for longer
I just have to try :profile
and possibly do a binary search with plugins
Heh, maybe it's something with fireplace
or clojure-static
To be fair, you might be able to remove vim salve, depending on the features you're using. I might remove it looking at what it provides.
I'd probably miss the auto-connect, maybe it's possible to build a stripped down version. Or something that uses neovim's job api
I don't have salve
autoconnect to .nrepl-port
is built into fireplace, not salve
Hmm... oh I have vim-leiningen
I could be wrong
But fireplace has some code to search for .nrepl-port
At least it provides commands to start new Lein or Boot repl, inside vim
Which I don't use
ah, from salve docs:
Each time |fireplace| attempts to use a repl connection, salve.vim will
try to automatically connect using target/repl-port or target/repl/repl-port.
(Fireplace itself supports the newer standard .nrepl-port.) If none of the 3
port files exist, :Console! (see below) is invoked to automatically start a
repl.
If you use gf
salve claims to set that up, but there's no reason it should be, as that's built into cider-nrepl.
It's also somehow random or depends on something, I ran vim --startuptime profile.log react/build.boot
three times, first time it took 8 seconds but subsequent starts are fast
But another file in packages repo and it takes 5 seconds again
The profiler output doesn't really show anything useful, only that opening buffers
takes all the file
Removed vim-leiningen -> fast
It'll depend on the fireplace implementation, it needs to be checked that it uses the nrepl middleware, instead of the naive implementation based on the jvm classpath. (Because that breaks boot)
I thought I had removed it before, I had the plugin on wrong folder even so I didn't see that I had it still
submodules are declarative
they are just declared on different place
Yes, nixos is interesting but I have near declarative package management script for Ubuntu also
And I manage most of my system config files on dotfiles repo, but I don't need that many anyways. Nearly all config is on home folder.
That's true. I mean, your bundle system looks tidy. But I just add whitespace between lines. I really need to tidy up my configs. There's so many missing.
But currently I have a github api key in my init.vim, so I can't publish even my changes there.
That brings to mind, I have github-issues.vim installed but I have not used it. Time to remove.
And though I used to use vimagit, now I have revereted back to just git add -p
I use vimagit for reviewing lots of little changes in a project, generally I use :Gstatus
then press D
on a file to see it's changes in a vimdiff
github-issues.vim does way more than I remembered. That's why I added it. I've got my own omnicomplete now, which is async, so actually fast.
Somewhat related to Vim; damn those new ThinkPads looks pathetic compared to X220 😕
I could live with chiclet and bad layout but there are plenty of other problems, t460s has small integrated battery, 20GB max memory and dim screen and flickering backlight
Still waiting for proper t460p reviews
Removing vim-leiningen seems to have solved my slow opening issues. And I noticed that I still had YCM left-over on my desktop and removing that fixed deoplete.
And automatic nrepl connection to Boot and Lein works fine
I'm looking at going ergodox. I think something that small might be able to comfortably sit beside my laptop most of the time.
I did the same, removed vim-leiningen, it fixed the issue and (at least from boot) nrepl connection works fine
That's awesome. RE vim-leiningen. I've commented it out for now, I'm going to see if I miss anything. I fear that gf
might break.
I have Ergodox Ez, but I haven't had yet time to customize keymap so I'm not using it
I don't like the default keymap much
@juhoteperi: I'm going to buy a 3d printer and do it all myself. Well, if I put together a good clojure layout, I'll forward it to you.
Yeah, though it is not necessary that hardware/firmware layout is European, software will map it. But it is probably necessary to thing about layout being used when designing it.
The default layout in EZ is strange: http://ergodox-ez.com/ergodox_ez_keymap_highres.png it has two sets of arrow keys 😄
Yeah, I suppose that makes sense for most users. I think the coder layer toggle is good.
But I might be inclined to remap those arrow keys to parens or something for programming.
@juhoteperi: If you decide to have a play, it's super easy to install nix the package manager, locally only. It's really cool.