Make alternates function public
This commit is contained in:
parent
8f925c9342
commit
235a4ec3e8
@ -1126,7 +1126,7 @@ augroup fireplace_alternate
|
|||||||
autocmd FileType clojure command! -buffer -bar AT :exe s:Alternate('tabedit')
|
autocmd FileType clojure command! -buffer -bar AT :exe s:Alternate('tabedit')
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
function! s:alternates() abort
|
function! fireplace#alternates() abort
|
||||||
let ns = fireplace#ns()
|
let ns = fireplace#ns()
|
||||||
if ns =~# '-test$'
|
if ns =~# '-test$'
|
||||||
let alt = [ns[0:-6]]
|
let alt = [ns[0:-6]]
|
||||||
@ -1141,7 +1141,7 @@ function! s:alternates() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Alternate(cmd) abort
|
function! s:Alternate(cmd) abort
|
||||||
let alternates = s:alternates()
|
let alternates = fireplace#alternates()
|
||||||
for file in alternates
|
for file in alternates
|
||||||
let path = fireplace#findresource(file)
|
let path = fireplace#findresource(file)
|
||||||
if !empty(path)
|
if !empty(path)
|
||||||
|
Loading…
Reference in New Issue
Block a user