diff options
Diffstat (limited to '.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins')
6 files changed, 106 insertions, 0 deletions
diff --git a/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/ctrlp.vim b/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/ctrlp.vim new file mode 100644 index 0000000..1ea4898 --- /dev/null +++ b/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/ctrlp.vim | |||
@@ -0,0 +1,30 @@ | |||
1 | " Initialize for up to date ctrlp fork: ctrlpvim/ctrlp.vim | ||
2 | " Support for kien/ctrlp.vim deprecated since v0.7.0 | ||
3 | " @TODO implementation for CtrlP buffer and find file mode | ||
4 | |||
5 | function! devicons#plugins#ctrlp#init() abort | ||
6 | let l:ctrlp_warning_message = 'vim-devicons: https://github.com/kien/ctrlp.vim is deprecated since v0.7.0, please use https://github.com/ctrlpvim/ctrlp.vim' | ||
7 | let l:ctrlp_warned_file = webdevicons#pluginHome() . '/status_warned_ctrlp' | ||
8 | |||
9 | if exists('g:loaded_ctrlp') && g:webdevicons_enable_ctrlp | ||
10 | let l:forkedCtrlp = exists('g:ctrlp_mruf_map_string') | ||
11 | |||
12 | if l:forkedCtrlp | ||
13 | if !exists('g:ctrlp_formatline_func') | ||
14 | " logic for ctrlpvim/ctrlp.vim: | ||
15 | let g:ctrlp_formatline_func = 's:formatline(s:curtype() == "buf" ? v:val : WebDevIconsGetFileTypeSymbol(v:val) . " " . v:val) ' | ||
16 | endif | ||
17 | elseif empty(glob(l:ctrlp_warned_file)) | ||
18 | " logic for kien/ctrlp.vim: | ||
19 | echohl WarningMsg | | ||
20 | \ echomsg l:ctrlp_warning_message | ||
21 | " only warn first time, do not warn again: | ||
22 | try | ||
23 | execute writefile(['File automatically generated after warning about CtrlP once', l:ctrlp_warning_message], l:ctrlp_warned_file) | ||
24 | catch | ||
25 | endtry | ||
26 | endif | ||
27 | endif | ||
28 | endfunction | ||
29 | |||
30 | " vim: tabstop=2 softtabstop=2 shiftwidth=2 expandtab: | ||
diff --git a/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/denite.vim b/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/denite.vim new file mode 100644 index 0000000..5884644 --- /dev/null +++ b/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/denite.vim | |||
@@ -0,0 +1,10 @@ | |||
1 | function! devicons#plugins#denite#init() abort | ||
2 | let s:denite_ver = (exists('*denite#get_status_mode') ? 2 : 3) | ||
3 | if s:denite_ver == 3 | ||
4 | call denite#custom#source('file,file/rec,file_mru,file/old,buffer,directory/rec,directory_mru', 'converters', ['devicons_denite_converter']) | ||
5 | else | ||
6 | call denite#custom#source('file,file_rec,file_mru,file_old,buffer,directory_rec,directory_mru', 'converters', ['devicons_denite_converter']) | ||
7 | endif | ||
8 | endfunction | ||
9 | |||
10 | " vim: tabstop=2 softtabstop=2 shiftwidth=2 expandtab: | ||
diff --git a/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/flagship.vim b/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/flagship.vim new file mode 100644 index 0000000..f67103c --- /dev/null +++ b/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/flagship.vim | |||
@@ -0,0 +1,15 @@ | |||
1 | function! devicons#plugins#flagship#init() abort | ||
2 | if g:webdevicons_enable_flagship_statusline | ||
3 | augroup webdevicons_flagship_filetype | ||
4 | autocmd User Flags call Hoist('buffer', 'WebDevIconsGetFileTypeSymbol') | ||
5 | augroup END | ||
6 | endif | ||
7 | |||
8 | if g:webdevicons_enable_flagship_statusline_fileformat_symbols | ||
9 | augroup webdevicons_flagship_filesymbol | ||
10 | autocmd User Flags call Hoist('buffer', 'WebDevIconsGetFileFormatSymbol') | ||
11 | augroup END | ||
12 | endif | ||
13 | endfunction | ||
14 | |||
15 | " vim: tabstop=2 softtabstop=2 shiftwidth=2 expandtab: | ||
diff --git a/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/startify.vim b/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/startify.vim new file mode 100644 index 0000000..f3c2d12 --- /dev/null +++ b/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/startify.vim | |||
@@ -0,0 +1,6 @@ | |||
1 | |||
2 | function! devicons#plugins#startify#init() abort | ||
3 | exec ":function! StartifyEntryFormat() abort \n return 'WebDevIconsGetFileTypeSymbol(absolute_path) .\" \". entry_path' \n endfunction" | ||
4 | endfunction | ||
5 | |||
6 | " vim: tabstop=2 softtabstop=2 shiftwidth=2 expandtab: | ||
diff --git a/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/unite.vim b/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/unite.vim new file mode 100644 index 0000000..c40924a --- /dev/null +++ b/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/unite.vim | |||
@@ -0,0 +1,37 @@ | |||
1 | function! devicons#plugins#unite#init() abort | ||
2 | let s:filters = { | ||
3 | \ 'name': 'devicons_unite_converter' | ||
4 | \ } | ||
5 | |||
6 | function! s:filters.filter(candidates, context) abort | ||
7 | for candidate in a:candidates | ||
8 | |||
9 | if has_key(candidate, 'action__buffer_nr') | ||
10 | let bufname = bufname(candidate.action__buffer_nr) | ||
11 | let filename = fnamemodify(bufname, ':p:t') | ||
12 | let path = fnamemodify(bufname, ':p:h') | ||
13 | elseif has_key(candidate, 'word') && has_key(candidate, 'action__path') | ||
14 | let path = candidate.action__path | ||
15 | let filename = candidate.word | ||
16 | endif | ||
17 | |||
18 | let icon = WebDevIconsGetFileTypeSymbol(filename, isdirectory(filename)) | ||
19 | |||
20 | " prevent filenames of buffers getting 'lost' | ||
21 | if filename != path | ||
22 | let path = printf('%s', filename) | ||
23 | endif | ||
24 | |||
25 | " Customize output format. | ||
26 | let candidate.abbr = printf('%s %s', icon, path) | ||
27 | endfor | ||
28 | return a:candidates | ||
29 | endfunction | ||
30 | |||
31 | call unite#define_filter(s:filters) | ||
32 | unlet s:filters | ||
33 | |||
34 | call unite#custom#source('file,file_rec,buffer,file_rec/async,file_rec/neovim,file_rec/neovim2,file_rec/git', 'converters', 'devicons_unite_converter') | ||
35 | endfunction | ||
36 | |||
37 | " vim: tabstop=2 softtabstop=2 shiftwidth=2 expandtab: | ||
diff --git a/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/vimfiler.vim b/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/vimfiler.vim new file mode 100644 index 0000000..62e6c3d --- /dev/null +++ b/.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/vimfiler.vim | |||
@@ -0,0 +1,8 @@ | |||
1 | function! devicons#plugins#vimfiler#init() abort | ||
2 | call vimfiler#custom#profile('default', 'context', { | ||
3 | \ 'columns': 'devicons:size:time', | ||
4 | \ 'explorer_columns': 'devicons' | ||
5 | \ }) | ||
6 | endfunction | ||
7 | |||
8 | " vim: tabstop=2 softtabstop=2 shiftwidth=2 expandtab: | ||