summaryrefslogtreecommitdiff
path: root/.vim/pack/vendor/start/vim-devicons/pythonx
diff options
context:
space:
mode:
Diffstat (limited to '.vim/pack/vendor/start/vim-devicons/pythonx')
-rw-r--r--.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/__init__.py2
-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
3 files changed, 32 insertions, 0 deletions
diff --git a/.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/__init__.py b/.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/__init__.py
new file mode 100644
index 0000000..ece379c
--- /dev/null
+++ b/.vim/pack/vendor/start/vim-devicons/pythonx/vim_devicons/__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/__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 }]