mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-30 14:45:30 +08:00
@@ -713,6 +713,18 @@ function! fzf#vim#helptags(...)
|
||||
\ 'options': '--ansi +m --tiebreak=begin --with-nth ..-2'}, a:000)
|
||||
endfunction
|
||||
|
||||
" ------------------------------------------------------------------
|
||||
" File types
|
||||
" ------------------------------------------------------------------
|
||||
function! fzf#vim#filetypes(...)
|
||||
return s:fzf({
|
||||
\ 'source': sort(map(split(globpath(&rtp, 'syntax/*.vim'), '\n'),
|
||||
\ 'fnamemodify(v:val, ":t:r")')),
|
||||
\ 'sink': 'setf',
|
||||
\ 'options': '+m --prompt="File types> "'
|
||||
\}, a:000)
|
||||
endfunction
|
||||
|
||||
" ------------------------------------------------------------------
|
||||
" Windows
|
||||
" ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user