@@ -934,6 +934,36 @@ function! fzf#vim#commands(...)
934934 \ ' --tiebreak=index --header-lines 1 -x --prompt "Commands> " -n2,3,2..3 -d' .s: nbs }, a: 000 )
935935endfunction
936936
937+ " ------------------------------------------------------------------
938+ " Compilers
939+ " ------------------------------------------------------------------
940+ function ! fzf#vim#compilers (... )
941+ let compilers = split (globpath (&rtp , " compiler/*.vim" ), " \n " )
942+ if has (' packages' )
943+ let compilers += split (globpath (&packpath , " pack/*/opt/*/compiler/*.vim" ), " \n " )
944+ endif
945+ return s: fzf (' compilers' , {
946+ \ ' source' : fzf#vim#_uniq (map (compilers, " substitute(fnamemodify(v:val, ':t'), '\\ ..\\ {-}$', '', '')" )),
947+ \ ' sink' : ' compiler!' ,
948+ \ ' options' : ' +m --prompt="Compilers> "'
949+ \} , a: 000 )
950+ endfunction
951+
952+ " ------------------------------------------------------------------
953+ " BCompilers
954+ " ------------------------------------------------------------------
955+ function ! fzf#vim#buffer_compilers (... )
956+ let compilers = split (globpath (&rtp , " compiler/*.vim" ), " \n " )
957+ if has (' packages' )
958+ let compilers += split (globpath (&packpath , " pack/*/opt/*/compiler/*.vim" ), " \n " )
959+ endif
960+ return s: fzf (' compilers' , {
961+ \ ' source' : fzf#vim#_uniq (map (compilers, " substitute(fnamemodify(v:val, ':t'), '\\ ..\\ {-}$', '', '')" )),
962+ \ ' sink' : ' compiler' ,
963+ \ ' options' : ' +m --prompt="BCompilers> "'
964+ \} , a: 000 )
965+ endfunction
966+
937967" ------------------------------------------------------------------
938968" Marks
939969" ------------------------------------------------------------------
0 commit comments