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/pythonx/vim_devicons/powerline | |
| parent | dfcc303e7cc284a45f55bae81ed888dc256432b8 (diff) | |
Add some Vim plugins
Diffstat (limited to '.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/powerline')
| -rw-r--r-- | .vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/powerline/__init__.py | 2 | ||||
| -rw-r--r-- | .vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/powerline/segments.py | 28 |
2 files changed, 30 insertions, 0 deletions
diff --git a/.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/powerline/__init__.py b/.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/powerline/__init__.py new file mode 100644 index 0000000..ece379c --- /dev/null +++ b/.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/powerline/__init__.py | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | import pkg_resources | ||
| 2 | pkg_resources.declare_namespace(__name__) | ||
diff --git a/.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/powerline/segments.py b/.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/powerline/segments.py new file mode 100644 index 0000000..f92f4ee --- /dev/null +++ b/.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/powerline/segments.py | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | # -*- coding: utf-8 -*- | ||
| 2 | # vim:se fenc=utf8 noet: | ||
| 3 | from __future__ import (unicode_literals, division, absolute_import, print_function) | ||
| 4 | |||
| 5 | try: | ||
| 6 | import vim | ||
| 7 | except ImportError: | ||
| 8 | vim = {} | ||
| 9 | |||
| 10 | from powerline.bindings.vim import (vim_get_func, buffer_name) | ||
| 11 | from powerline.theme import requires_segment_info | ||
| 12 | |||
| 13 | @requires_segment_info | ||
| 14 | def webdevicons(pl, segment_info): | ||
| 15 | webdevicons = vim_get_func('WebDevIconsGetFileTypeSymbol') | ||
| 16 | name = buffer_name(segment_info) | ||
| 17 | return [] if not webdevicons else [{ | ||
| 18 | 'contents': webdevicons(name), | ||
| 19 | 'highlight_groups': ['webdevicons', 'file_name'], | ||
| 20 | }] | ||
| 21 | |||
| 22 | @requires_segment_info | ||
| 23 | def webdevicons_file_format(pl, segment_info): | ||
| 24 | webdevicons_file_format = vim_get_func('WebDevIconsGetFileFormatSymbol') | ||
| 25 | return [] if not webdevicons_file_format else [{ | ||
| 26 | 'contents': webdevicons_file_format(), | ||
| 27 | 'highlight_groups': ['webdevicons_file_format', 'file_format'], | ||
| 28 | }] | ||
