summaryrefslogtreecommitdiff
path: root/.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/powerline
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2023-06-11 07:54:59 -0400
committerSam Chudnick <sam@chudnick.com>2023-06-11 07:54:59 -0400
commit3adcf542289a0883924ae9b9be8b898c36702c95 (patch)
treef02166ef4c95161ffa994eb1a3e5729c93c2c66b /.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/powerline
parentdfcc303e7cc284a45f55bae81ed888dc256432b8 (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__.py2
-rw-r--r--.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/powerline/segments.py28
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 @@
1import pkg_resources
2pkg_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:
3from __future__ import (unicode_literals, division, absolute_import, print_function)
4
5try:
6 import vim
7except ImportError:
8 vim = {}
9
10from powerline.bindings.vim import (vim_get_func, buffer_name)
11from powerline.theme import requires_segment_info
12
13@requires_segment_info
14def 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
23def 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 }]