Permalink
Browse files

Revert "Add aurum segment"

This reverts commit d3916d3. The reason
why this commit is being reverted is that it adds a dependency on Frawor
which is yet another plugin loader. The segment should be rewritten to
not depend on this plugin.

Conflicts:
	autoload/Powerline/Functions/aurum.vim
  • Loading branch information...
1 parent fa55b81 commit c4b72c5be57b165bb6a89d0b8a974fe62c0091d0 @Lokaltog committed Jun 11, 2012
@@ -66,7 +66,7 @@ let g:Powerline#Colorschemes#default#colorscheme = Pl#Colorscheme#Init([
\ 'i': ['white', 'darkblue', ['bold']],
\ }),
\
- \ Pl#Hi#Segments(['fileinfo.filepath', 'status'], {
+ \ Pl#Hi#Segments(['fileinfo.filepath'], {
\ 'n': ['gray10'],
\ 'N': ['gray5'],
\ 'i': ['mediumcyan'],
@@ -1,8 +0,0 @@
-function! Powerline#Functions#aurum#GetBranch(symbol) " {{{
- let r = aurum#branch()
- return empty(r) ? '' : a:symbol .' '. r
-endfunction " }}}
-function! Powerline#Functions#aurum#GetStatus() " {{{
- let r = aurum#status()
- return (empty(r) || r is# 'clean') ? '' : toupper(r[0])
-endfunction " }}}
@@ -1,6 +0,0 @@
-let g:Powerline#Segments#aurum#segments = Pl#Segment#Init(['aurum',
- \ (exists('*FraworLoad') && FraworLoad('autoload/aurum')),
- \
- \ Pl#Segment#Create('branch', '%{Powerline#Functions#aurum#GetBranch("$BRANCH")}'),
- \ Pl#Segment#Create('status', '%{Powerline#Functions#aurum#GetStatus()}')
-\ ])
@@ -5,7 +5,6 @@ let g:Powerline#Themes#default#theme = Pl#Theme#Create(
\ , 'fugitive:branch'
\ , 'hgrev:branch'
\ , 'fileinfo'
- \ , 'aurum:status'
\ , 'syntastic:errors'
\ , Pl#Segment#Truncate()
\ , 'tagbar:currenttag'

2 comments on commit c4b72c5

Contributor

ZyX-I replied Jun 12, 2012

It is a framework, not just plugin loader. You can’t depend on aurum and not depend on frawor since aurum won’t work without it, and with exists("*FraworLoad") precondition it is safe to use without installing frawor.

Contributor

ZyX-I replied Jun 12, 2012

By the way, what does it mean: “yet another”? I sometimes saw other frameworks, all specialized, libraries, containing a bunch of unrelated functions (not putting much restrictions on code using them, so not frameworks), only once loader that is parsing plugin files seeking for functions, commands and mappings and creating a temporary replacements or FuncUndefined events to load plugins in question when required, but no other plugin loaders.

Please sign in to comment.