parent
873623df59
commit
8d253a9fdf
@ -1092,8 +1092,10 @@ function! s:alternates() abort
|
|||||||
let alt = [ns[0:-6]]
|
let alt = [ns[0:-6]]
|
||||||
elseif ns =~# '\.test\.'
|
elseif ns =~# '\.test\.'
|
||||||
let alt = [substitute(ns, '\.test\.', '.', '')]
|
let alt = [substitute(ns, '\.test\.', '.', '')]
|
||||||
|
elseif ns =~# '-spec$'
|
||||||
|
let alt = [ns[0:-6], ns . '-test']
|
||||||
else
|
else
|
||||||
let alt = [ns . '-test', substitute(ns, '\.', '.test.', '')]
|
let alt = [ns . '-test', substitute(ns, '\.', '.test.', ''), ns . '-spec']
|
||||||
endif
|
endif
|
||||||
return map(alt, 'tr(v:val, ".-", "/_") . ".clj"')
|
return map(alt, 'tr(v:val, ".-", "/_") . ".clj"')
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user