mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-10-15 18:42:44 +08:00
1 parent
852cfa0c11
commit
fb358ad4e6
4 files changed
+15
No files matched your search
@@ -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