diff options
author | Sam Chudnick <sam@chudnick.com> | 2023-06-11 07:54:59 -0400 |
---|---|---|
committer | Sam Chudnick <sam@chudnick.com> | 2023-06-11 07:54:59 -0400 |
commit | 3adcf542289a0883924ae9b9be8b898c36702c95 (patch) | |
tree | f02166ef4c95161ffa994eb1a3e5729c93c2c66b /.vim/pack/vendor/start/vim-devicons/autoload/vimfiler | |
parent | dfcc303e7cc284a45f55bae81ed888dc256432b8 (diff) |
Add some Vim plugins
Diffstat (limited to '.vim/pack/vendor/start/vim-devicons/autoload/vimfiler')
-rw-r--r-- | .vim/pack/vendor/start/vim-devicons/autoload/vimfiler/columns/devicons.vim | 80 |
1 files changed, 80 insertions, 0 deletions
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 | |||
28 | let s:save_cpo = &cpo | ||
29 | set cpo&vim | ||
30 | |||
31 | function! vimfiler#columns#devicons#define() abort | ||
32 | return s:column | ||
33 | endfunction | ||
34 | |||
35 | let s:column = { | ||
36 | \ 'name' : 'devicons', | ||
37 | \ 'description' : 'get devicon glyph', | ||
38 | \ 'syntax' : 'vimfilerColumn__devicons', | ||
39 | \ } | ||
40 | |||
41 | function! s:column.length(files, context) abort | ||
42 | return 3 | ||
43 | endfunction | ||
44 | |||
45 | function! 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 | ||
71 | endfunction"}}} | ||
72 | |||
73 | function! s:column.get(file, context) abort | ||
74 | return WebDevIconsGetFileTypeSymbol(strpart(a:file.action__path, strridx(a:file.action__path, '/')), a:file.vimfiler__is_directory) | ||
75 | endfunction | ||
76 | |||
77 | let &cpo = s:save_cpo | ||
78 | unlet s:save_cpo | ||
79 | |||
80 | " vim: foldmethod=marker | ||