summaryrefslogtreecommitdiff
path: root/.vim/pack/vendor/start/vim-devicons/autoload
diff options
context:
space:
mode:
Diffstat (limited to '.vim/pack/vendor/start/vim-devicons/autoload')
-rw-r--r--.vim/pack/vendor/start/vim-devicons/autoload/airline/extensions/tabline/formatters/webdevicons.vim14
-rw-r--r--.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/ctrlp.vim30
-rw-r--r--.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/denite.vim10
-rw-r--r--.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/flagship.vim15
-rw-r--r--.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/startify.vim6
-rw-r--r--.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/unite.vim37
-rw-r--r--.vim/pack/vendor/start/vim-devicons/autoload/devicons/plugins/vimfiler.vim8
-rw-r--r--.vim/pack/vendor/start/vim-devicons/autoload/vimfiler/columns/devicons.vim80
8 files changed, 200 insertions, 0 deletions
diff --git a/.vim/pack/vendor/start/vim-devicons/autoload/airline/extensions/tabline/formatters/webdevicons.vim b/.vim/pack/vendor/start/vim-devicons/autoload/airline/extensions/tabline/formatters/webdevicons.vim
new file mode 100644
index 0000000..c298025
--- /dev/null
+++ b/.vim/pack/vendor/start/vim-devicons/autoload/airline/extensions/tabline/formatters/webdevicons.vim
@@ -0,0 +1,14 @@
1" Version: 0.11.0
2" Webpage: https://github.com/ryanoasis/vim-devicons
3" Maintainer: Ryan McIntyre <ryanoasis@gmail.com>
4" License: see LICENSE
5
6function! airline#extensions#tabline#formatters#webdevicons#format(bufnr, buffers) abort
7 " Call original formatter.
8 let originalFormatter = airline#extensions#tabline#formatters#{g:_webdevicons_airline_orig_formatter}#format(a:bufnr, a:buffers)
9 return originalFormatter . g:WebDevIconsTabAirLineBeforeGlyphPadding .
10 \ WebDevIconsGetFileTypeSymbol(bufname(a:bufnr)) . g:WebDevIconsTabAirLineAfterGlyphPadding
11endfunction
12
13" modeline syntax:
14" vim: fdm=marker tabstop=2 softtabstop=2 shiftwidth=2 expandtab:
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
5function! 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
28endfunction
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 @@
1function! 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
8endfunction
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 @@
1function! 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
13endfunction
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
2function! devicons#plugins#startify#init() abort
3 exec ":function! StartifyEntryFormat() abort \n return 'WebDevIconsGetFileTypeSymbol(absolute_path) .\" \". entry_path' \n endfunction"
4endfunction
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 @@
1function! 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')
35endfunction
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 @@
1function! devicons#plugins#vimfiler#init() abort
2 call vimfiler#custom#profile('default', 'context', {
3 \ 'columns': 'devicons:size:time',
4 \ 'explorer_columns': 'devicons'
5 \ })
6endfunction
7
8" vim: tabstop=2 softtabstop=2 shiftwidth=2 expandtab:
diff --git a/.vim/pack/vendor/start/vim-devicons/autoload/vimfiler/columns/devicons.vim b/.vim/pack/vendor/start/vim-devicons/autoload/vimfiler/columns/devicons.vim
new file mode 100644
index 0000000..d11ee22
--- /dev/null
+++ b/.vim/pack/vendor/start/vim-devicons/autoload/vimfiler/columns/devicons.vim
@@ -0,0 +1,80 @@
1"=============================================================================
2" FILE: devicons.vim
3" Version: 0.11.0
4" Webpage: https://github.com/ryanoasis/vim-devicons
5" Maintainer: Ryan McIntyre <ryanoasis@gmail.com>
6" License: MIT license {{{
7" Permission is hereby granted, free of charge, to any person obtaining
8" a copy of this software and associated documentation files (the
9" "Software"), to deal in the Software without restriction, including
10" without limitation the rights to use, copy, modify, merge, publish,
11" distribute, sublicense, and/or sell copies of the Software, and to
12" permit persons to whom the Software is furnished to do so, subject to
13" the following conditions:
14"
15" The above copyright notice and this permission notice shall be included
16" in all copies or substantial portions of the Software.
17"
18" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25" }}}
26"=============================================================================
27
28let s:save_cpo = &cpo
29set cpo&vim
30
31function! vimfiler#columns#devicons#define() abort
32 return s:column
33endfunction
34
35let s:column = {
36 \ 'name' : 'devicons',
37 \ 'description' : 'get devicon glyph',
38 \ 'syntax' : 'vimfilerColumn__devicons',
39 \ }
40
41function! s:column.length(files, context) abort
42 return 3
43endfunction
44
45function! s:column.define_syntax(context) abort "{{{
46 syntax match vimfilerColumn__TypeText '\[T\]'
47 \ contained containedin=vimfilerColumn__Type
48 syntax match vimfilerColumn__TypeImage '\[I\]'
49 \ contained containedin=vimfilerColumn__Type
50 syntax match vimfilerColumn__TypeArchive '\[A\]'
51 \ contained containedin=vimfilerColumn__Type
52 syntax match vimfilerColumn__TypeExecute '\[X\]'
53 \ contained containedin=vimfilerColumn__Type
54 syntax match vimfilerColumn__TypeMultimedia '\[M\]'
55 \ contained containedin=vimfilerColumn__Type
56 syntax match vimfilerColumn__TypeDirectory '\[do\]'
57 \ contained containedin=vimfilerColumn__Type
58 syntax match vimfilerColumn__TypeSystem '\[S\]'
59 \ contained containedin=vimfilerColumn__Type
60 syntax match vimfilerColumn__TypeLink '\[L\]'
61 \ contained containedin=vimfilerColumn__Type
62
63 highlight def link vimfilerColumn__TypeText Constant
64 highlight def link vimfilerColumn__TypeImage Type
65 highlight def link vimfilerColumn__TypeArchive Special
66 highlight def link vimfilerColumn__TypeExecute Statement
67 highlight def link vimfilerColumn__TypeMultimedia Identifier
68 highlight def link vimfilerColumn__TypeDirectory Preproc
69 highlight def link vimfilerColumn__TypeSystem Comment
70 highlight def link vimfilerColumn__TypeLink Comment
71endfunction"}}}
72
73function! s:column.get(file, context) abort
74 return WebDevIconsGetFileTypeSymbol(strpart(a:file.action__path, strridx(a:file.action__path, '/')), a:file.vimfiler__is_directory)
75endfunction
76
77let &cpo = s:save_cpo
78unlet s:save_cpo
79
80" vim: foldmethod=marker