Fork me on GitHub
#vim
<
2016-11-25
>
mx200011:11:37

Is there some VIM-clojure-plugin which shows me a navigator tab with all the def’s of the current file? Like NERDTREE only for clojure src files

mx200011:11:46

I miss this from eclipse counterclockwise

zamaterian13:11:04

maybe ctrlp tag plugin

zamaterian13:11:14

@mx2000 `let g:ctrlp_match_window = 'max:50' let g:ctrlp_match_window_bottom = 0 let g:ctrlp_match_window_reversed = 0 let g:ctrlp_max_files = 1000 let g:ctrlp_max_depth = 10 let g:ctrlp_extensions = ['buffertag'] let g:ctrl_working_path_mode = 'ra' let g:ctrlp_cmd = 'CtrlPMixed' let g:ctrlp_reuse_window = 'netrw\|help\|startify’ “<M > works in neovim noremap <M-t> :CtrlPBufTag<CR> noremap <M-T> :CtrlPBufTagAll<CR> let g:ctrlp_buftag_types = { \'clojure' : '--langmap=Lisp:+.clj' \} `

dominicm16:11:08

@mx2000 I had been working on this, but hadn't got it finished. It should be easy to hack together by piping the result of :call session_eval('(ns-publics)') into unite/ctrlp/denite

lsenta16:11:47

I got something nice with vim-gutentags + universal ctags + tagbar

lsenta16:11:23

“nice” meaning "it more or less works" (def and defn are mixed though)

dominicm16:11:30

That's pretty neat

lsenta16:11:22

It has the benefit of not needing fireplace, which I failed twice a setting up with cljs 😞

dominicm16:11:38

@lsenta if that was with figwheel, please try again. Latest version has a patch in which fixes fireplace support

dominicm17:11:12

I've used that sidecar guide yep. It's a bit complicated though.

lsenta17:11:59

Which makes it super fragile I guess, on first connect then cpp I get this in my (n)vim:

{'status': ['eval-error', 'done'], 'ex': 'class clojure.lang.ExceptionInfo', 'root-ex': '
class clojure.lang.ExceptionInfo', 'id': 'fireplace-HALIX-1480095253-24', 'session': ['a9
b06372-1eee-4163-9a70-fc74d048230c'], 'err': 'org.mozilla.javascript.EvaluatorException:
Java class "[Ljava.lang.StackTraceElement;" has no public instance field or method named
"cljs$lang$protocol_mask$partition0$". (rhino.clj#41)^@'}
Trying a connect again, I get a “couldn’t locate —file--.clj” in my repl

juhoteperi17:11:55

That error looks like it is from Rhino repl instead of Figwheel browser repl

juhoteperi17:11:23

Piggieback will start a Rhino repl if there is no existing connection or something

juhoteperi17:11:27

Not sure what the logic is

juhoteperi18:11:01

I guess it would make sense to disable that - accidentally opening Rhino repl can cause problems and will block Vim for a few seconds

juhoteperi18:11:43

(Rhino is JS runtime like Node)

lsenta18:11:26

Can I see the connection logs somewhere?

lsenta18:11:51

I have to :Connect twice

lsenta18:11:18

to talk to the repl, which seem’s to expect clj files and fails

dominicm22:11:56

@lsenta did you run the piggieback command?