Commit Graph

60 Commits

Author SHA1 Message Date
Christian Brabandt
d624a44500
Fix tests for the changed default separators 2017-02-24 22:49:39 +01:00
Christian Brabandt
c0cb03f48b don't add a second separator if not needed
Using let g:airline_section_y = airline#section#create_right(['ffenc','%{strftime("%H:%M")}'])
will result in an output string of `utf-8[unix] < < 00:00`

This happens, because the function util#prepend() will eventually add an
extra separator, if the width is zero. Therefore, when building the
string, remember, if the last section added an extra separator and only
add one, if there hasn't been added one before.

fixes #1220
2016-09-05 20:20:44 +02:00
David Terei
ae4a978509 Add spell detection 2016-03-21 23:52:04 -07:00
Daniel Hahler
d39076a07d airline#highlighter: s:get_syn: fallback to 'NONE'
This is required when used with 'Normal' with a transparent background.
Falling back to 1 here results in "red" for "ctermbg"!

I think it's important to keep the 'NONE' color property here, instead
of hardcoding the fallbacks (even if white would be used instead of
red).
2016-02-16 00:44:07 +01:00
Christian Brabandt
2d4cb5c1ad updated travis
test switching color schemes
2016-01-31 18:15:39 +01:00
Christian Brabandt
5ed7c81b6d fix travis failing 2016-01-30 15:06:22 +01:00
Bailey Ling
51095bad95 fix failing tests 2015-02-27 22:45:12 -05:00
Chang Yu-heng
6d7996ff1b Replace column number with virtual column number 2015-01-19 00:04:26 +08:00
Bailey Ling
6b4f03efbc fix seperator drawing when tabs are shown. fixes #653. 2014-11-25 21:04:18 -05:00
Bailey Ling
09817e0984 fix regression with serene theme, #599 2014-11-15 19:49:02 +00:00
Bailey Ling
be6e4d6dd6 check background of groups to determine transition. resolves #599. 2014-11-09 00:52:42 -05:00
Bailey Ling
99b7cdf334 improve performance with accent cache (#326). 2013-11-01 00:58:08 -04:00
Bailey Ling
af330f6a47 add AirlineRefresh command. 2013-10-06 09:01:01 -04:00
xinleibird
5582daf79c add eclim's checker extension, when eclim is running , it can instead of syntastic 2013-10-01 12:42:42 +08:00
Bailey Ling
e16c36eea1 default space back to 32 (#283). 2013-09-30 14:37:02 +00:00
Bailey Ling
2f3b33daae fix solarized theme being out of sync (#288). 2013-09-27 21:36:44 -04:00
Bailey Ling
d123e3583a fix parts being undefined when referenced by sections in vimrc (#207). 2013-09-25 22:13:57 -04:00
Bailey Ling
e507f481a2 allow parts to be defined in the vimrc as overrides. resolves #284. 2013-09-25 18:48:18 +00:00
Bailey Ling
248c9b0e29 restore highlight group with accents for all types of parts. resolves #272. 2013-09-23 15:45:44 +00:00
Bailey Ling
b07362947e do not copy section_a to section_z
this allows for the line number bolding to display nicely on all themes
2013-09-23 14:56:37 +00:00
Bailey Ling
245fe31f80 correct tests. 2013-09-22 18:05:58 -04:00
Bailey Ling
b5e8ea275e do not render accents in inactive splits. resolves #270. 2013-09-22 17:15:02 -04:00
Bailey Ling
474116461f use __accent to better differentiate between a real group. 2013-09-22 15:20:06 -04:00
Bailey Ling
41192a2a65 fix broken test. 2013-09-22 15:13:59 -04:00
Bailey Ling
aa41683342 Merge branch '256' into dev
Conflicts:
	autoload/airline/init.vim
2013-09-22 11:34:35 -04:00
Bailey Ling
948a4178a8 use code 160 for space to fix rendering problems. 2013-09-18 22:23:50 -04:00
Bailey Ling
9d5a1744a1 support multiple accents in the same section (#203). 2013-09-18 21:31:39 -04:00
Bailey Ling
d833718dd9 add test for populate accent colors. 2013-09-17 22:49:28 -04:00
Bailey Ling
6442f01912 populate all modes with accent colors. 2013-09-17 22:45:12 -04:00
Bailey Ling
0a6b833e7c tests for configuring accents directly. 2013-09-15 22:52:42 -04:00
Bailey Ling
02aa620a92 correctly inject the accent highlight groups. 2013-09-15 22:47:13 -04:00
Bailey Ling
858ef19a6f fix unit tests. 2013-09-15 12:02:36 -04:00
Bailey Ling
0b6263844f add tests for theme generate helper functions 2013-09-15 08:41:48 -04:00
Bailey Ling
55f524de77 support for conditional parts. resolves #238. 2013-09-08 19:06:57 -04:00
Bailey Ling
ad3556d243 remove redundant highlight group. 2013-09-07 03:43:23 +00:00
Bailey Ling
ecd66184f6 init whitespace extension to blank. fixes #226. 2013-09-05 14:01:57 +00:00
Bailey Ling
c144543d03 fixes color change regression. resolves #218. 2013-09-04 15:25:55 +00:00
Bailey Ling
301fcdc64a use statusline function for better control. 2013-09-02 18:55:15 +00:00
Bailey Ling
f6900aeb0a move highlighter code to correct place and test. 2013-09-02 02:57:32 +00:00
Bailey Ling
41414a3a84 tests for basic color extraction. 2013-09-01 21:14:25 +00:00
Bailey Ling
7171a169f3 fix regression with ctrlp statusline not changing. 2013-09-01 19:19:34 +00:00
Bailey Ling
d6599d0b3b update documentation about section functions. 2013-09-01 13:59:22 -04:00
Bailey Ling
92de8ad160 much smarter handling of separators (#204). 2013-09-01 12:20:54 -04:00
Bailey Ling
723e721b32 test for warning sections enabled in active splits. 2013-09-01 10:38:00 -04:00
Bailey Ling
69f40d62ee move part declarations back into init. 2013-08-31 22:48:27 -04:00
Bailey Ling
f48031cde8 test for window switching and active/inactive splits. 2013-08-31 23:51:55 +00:00
Bailey Ling
1b91c71fc9 make it possible to declare sections in the vimrc (#204). 2013-08-31 17:42:09 -04:00
Bailey Ling
3b2b224a3b test removal of funcrefs 2013-08-31 16:28:33 -04:00
Bailey Ling
fd68997398 lazy load variables until needed (#204).
this allows users to define section variables in their vimrc.
2013-08-31 12:57:02 -04:00
Bailey Ling
7e1206469c basic support for hiding based on win size per part (#200). 2013-08-31 12:33:58 -04:00