Reorganize files
This commit is contained in:
parent
091840ac67
commit
4d225179d0
|
@ -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
|
|
@ -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,
|
|
@ -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():
|
|
@ -0,0 +1 @@
|
|||
# -*- coding: utf-8 -*-
|
|
@ -0,0 +1 @@
|
|||
# -*- coding: utf-8 -*-
|
|
@ -0,0 +1 @@
|
|||
# -*- coding: utf-8 -*-
|
Loading…
Reference in New Issue