Fork me on GitHub
#vim
<
2017-03-27
>
claudiu14:03:24

Hi, does anyone know how I can specify that when I'm in a cljc file, the current line should evaluated with the browser-repl (piggieback) ?

dominicm14:03:33

There's a buffer variable you can set I believe, it's undocumented but in the fireplace source.

devth14:03:05

i can't be the only person with slow syntax highlighting in clojure. using a fresh neovim install and scrolling on some clojure files:

0.209567   12139  11743   0.001152    0.000017  clojureSymbol      \v%([a-zA-Z!$&*_+=|<.>?-]|[^\x00-\x7F])+%(:?%([a-zA-Z0-9!#$%&*_+=|'<.>/?-]|[^\x00-\x7F]))*[#:]@<!
  0.042613   12028  11174   0.000079    0.000004  clojureError       ]\|}\|)
  0.013902   3002   0       0.000044    0.000005  clojureNumber      \v<[-+]?%(0|[1-9]\d*)/%(0|[1-9]\d*)>
considering just manually removing clojureSymbol in the syntax file for clojure.

devth14:03:28

looks like it's a known issue too https://github.com/guns/vim-clojure-static/issues/77 but that project rarely gets updated/worked on anymore

dominicm14:03:38

@devth guns has been slightly more responsive lately, you may have luck

devth14:03:40

it's weird because it looks like he already did the work on https://github.com/guns/vim-clojure-static/tree/issue-77 but it hasn't been merged

devth14:03:59

feb 9 >>> Branch issue-77 now does syntax matching three times faster on average than master. There are still a few small optimizations that can be made, and I am in the process of adding test cases for symbols.

devth14:03:37

btw, i just switched from ctrl-p to fzf and it's amazingly fast

devth14:03:21

progress on the init.vim from scratch initiative 🙂 https://github.com/devth/dotfiles/blob/master/config/nvim/init.vim – previous .vimrc was around 900 lines

dominicm14:03:53

fzf is amazing 😮 I'm always impressed

dominicm14:03:08

@devth I'd comment on the issue, it'll likely be merged within the week.

devth14:03:23

i did 11 days ago

devth14:03:33

don't want to spam too much 🙂

dominicm14:03:33

Oh right :thinking_face:

dominicm14:03:50

I'd suggest bringing it into clojure-vim, but I wouldn't know how to maintain it myself.

dominicm14:03:55

My Vim-fu doesn't extend that way

devth14:03:17

it appears he's trying to keep it active. must be busy

dominicm14:03:26

Yeah, I think so.