mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 15:54:30 +02:00
Add repository_status vim segment
Split segment highlighting compared to the file_vcs_status segment is missing. Refs #173.
This commit is contained in:
parent
5cc265affd
commit
c8d4e58a93
@ -194,3 +194,11 @@ def file_vcs_status():
|
|||||||
ret[0]['before'] = ' '
|
ret[0]['before'] = ' '
|
||||||
return ret
|
return ret
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
@memoize(2)
|
||||||
|
def repository_status():
|
||||||
|
repo = guess(os.path.abspath(vim.current.buffer.name or os.getcwd()))
|
||||||
|
if repo:
|
||||||
|
return repo.status()
|
||||||
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user