Fork me on GitHub
#conjure
<
2021-04-07
>
jkrasnay21:04:38

Is there a way to jump to the “alternate” test namespace for the current ns as defined by the <localleader>tN shortcut?

Olical22:04:03

Not in Conjure but I can recommend tpope's plugin for jumping to alternate files, it's made for this situation

Olical22:04:14

I can't remember the name right now :thinking_face:

jkrasnay22:04:46

Oh yeah, I remember looking at that once. Thanks!

dharrigan05:04:49

Yes. I use projectionist

dharrigan05:04:22

"
" Projections
"
autocmd User ProjectionistDetect
  \ call projectionist#append(getcwd(),
  \ {
  \   'src/*.clj': {
  \     'alternate': 'test/{}_test.clj',
  \     'type': 'source'
  \   },
  \   'test/*_test.clj': {
  \     'alternate': 'src/{}.clj',
  \     'type': 'test'
  \   },
  \ })

🙏 6
đź‘Ť 3
3