Fork me on GitHub
#vim
<
2017-06-07
>
devth15:06:33

noticed vim-fireplace prevents gq from working 😱

dominicm15:06:25

@devth latest fireplace sets 'formatexpr' to do a format-code operation, so now requires cider.

dominicm15:06:55

I bet a PR to make it optional would be accepted 🙂. Or you could just have an auto cmd that unset formatexpr

dominicm15:06:00

(or set it to something else!)

devth15:06:23

got it. let me get cider setup

devth15:06:30

this was driving me crazy 😆

dominicm15:06:19

you can just do :Lein and it opens leiningen in the background with cider installed

devth15:06:41

oh cool. so that also avoids having to run lein repl in a separate terminal?

dominicm15:06:33

vim dispatch has some built in options: - Open in background via tmux - Open in iterm tab You can also use the neovim-dispatch plugin for: - Open in new tab using :terminal

dominicm15:06:09

Looks like there's a vim8 job handler in the works too

devth15:06:12

nice. neovim-dispatch looks interesting. i haven't yet attempted to add :terminal into my workflow

devth15:06:32

moderately heavy tmux user

dominicm15:06:58

wouldn't bother installing the neovim thing then

dominicm15:06:23

use tmux, will work just as well 🙂

devth15:06:59

hm, cider formatting is cool but obviously doesn't respect textwidth

devth15:06:21

(or the other many formatoptions that i've come to rely on)

devth15:06:37

should probably be optional

devth15:06:55

i think i'd want a custom mapping to use cider formatting but leave gq alone

dominicm15:06:58

vim surprisingly doesn't support the idea that you'd want multiple values for an expression 😛

dominicm15:06:26

(btw, format-code just uses weavejester's library, which I can't remember the name of right now)

devth15:06:11

nice but it doesn't have textwidth equiv 🙂

dominicm16:06:04

yes, that's the one

dominicm16:06:08

I know what you mean

dominicm16:06:35

I've been using zprint+lumo with vim, it works well for textwidth (although the code is sometimes a little strange, but it's configurable, so maybe I just need a better config)

devth16:06:25

looks nice

devth16:06:00

for now:

autocmd FileType clojure set formatexpr=

mikepjb16:06:17

@dominicm does vim-jack-in work without dispatch?

dominicm16:06:11

I have no idea if it's good practice though

devth17:06:50

who knew gw !??

dominicm18:06:43

I had skimmed it previously, didn't know much about it though

devth18:06:57

trying to retrain 😆

devth18:06:13

do you read vim docs for fun?

devth18:06:30

seems like you'd need to. since gq exists i'm not sure how i'd ever have discovered gw

dominicm18:06:51

It's besides gw in the manual

dominicm18:06:54

pure coincidence