Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add repository_status vim segment

Split segment highlighting compared to the file_vcs_status segment is
missing.

Refs #173.
  • Loading branch information...
commit c8d4e58a9366a9244d66413c417b97e0c6ce9b84 1 parent 5cc265a
@Lokaltog authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 powerline/segments/vim.py
View
8 powerline/segments/vim.py
@@ -194,3 +194,11 @@ def file_vcs_status():
ret[0]['before'] = ' '
return ret
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
Please sign in to comment.
Something went wrong with that request. Please try again.