Reorganize files

This commit is contained in:
Kim Silkebækken 2012-12-05 16:37:16 +01:00
parent 091840ac67
commit 4d225179d0
17 changed files with 7 additions and 9 deletions

View File

@ -1,7 +0,0 @@
class SegmentRenderer:
def hl(self, fg=None, bg=None, attr=None):
raise NotImplementedError
from lib.renderers.terminal import TerminalSegmentRenderer
from lib.renderers.tmux import TmuxSegmentRenderer
from lib.renderers.vim import VimSegmentRenderer

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
cterm_to_hex = {
16: 0x000000, 17: 0x00005f, 18: 0x000087, 19: 0x0000af, 20: 0x0000d7, 21: 0x0000ff,
22: 0x005f00, 23: 0x005f5f, 24: 0x005f87, 25: 0x005faf, 26: 0x005fd7, 27: 0x005fff,

View File

View File

View File

View File

@ -74,7 +74,7 @@ def readonly_indicator(text=u'⭤'):
return text if int(vim.eval('&readonly')) else None
def branch(symbol=u''):
def branch():
'''Return VCS branch.
TODO: Expand this function to handle several VCS plugins.
@ -87,7 +87,7 @@ def branch(symbol=u'⭠'):
except TypeError:
pass
return symbol + ' ' + branch if branch else None
return branch if branch else None
def file_directory():

1
powerline/renderer.py Normal file
View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

1
powerline/segment.py Normal file
View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

1
powerline/theme.py Normal file
View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-