Commit Graph

197 Commits

Author SHA1 Message Date
itchyny
83de2155e9 improve s:subseparator
- remove duplicated code for component functions
 - remove parenthesis if unnecessary
2016-04-15 00:53:11 +09:00
itchyny
bb2010a869 fix s:subseparator
- wrap the visible conditions with parenthesis
 - fix for older versions of Vim (do not use v:key of map(); s:map does not capture the environment)
2016-04-14 00:20:50 +09:00
itchyny
00346c27c0 refactor s:line: skip the type check in the indices because they are all strings (ref: c2b9562) 2016-04-13 20:38:03 +09:00
itchyny
1320fa8e71 refactor s:line: stop using printf() 2016-04-13 20:35:24 +09:00
itchyny
846720c9f2 improve s:line: check existence of component functions in advance 2016-04-13 09:16:29 +09:00
itchyny
abb1a29a38 improve s:line: remove substitute() 2016-04-13 00:36:57 +09:00
itchyny
8e4bb19c7c refactor s:subseparator 2016-04-13 00:12:36 +09:00
itchyny
21c8077db4 fix s:map (#156) 2016-04-08 13:50:31 +09:00
itchyny
7945e6fd90 improve s:map: precisely detect the version 2016-04-08 09:24:06 +09:00
itchyny
402d502b92 implement s:map() to support v:key in {list} for old versions of Vim (fix #156) 2016-04-08 09:02:06 +09:00
itchyny
e888c726f2 refactor lightline#onetab 2016-03-26 16:05:42 +09:00
itchyny
be21933a44 refactor lightline#onetab 2016-03-26 14:02:54 +09:00
itchyny
ec00e383a2 tweak s:uniq 2016-03-25 09:06:06 +09:00
itchyny
69d0663561 fix s:uniq function 2016-03-24 21:45:05 +09:00
itchyny
c98d66be65 do not sort in s:unique and rename it to s:uniq 2016-03-24 21:36:21 +09:00
itchyny
2ee2a07ecd remove unnecessary copy() 2016-03-24 21:29:49 +09:00
itchyny
e6c5ad3215 implement s:unique for environment where uniq() is not available 2016-03-24 21:26:14 +09:00
itchyny
c89e1d8007 use uniq() function 2016-03-24 21:17:20 +09:00
itchyny
900d1075a8 rename uniq to unique 2016-03-24 21:01:44 +09:00
itchyny
a475a394db refactor lightline#concatenate 2016-03-24 08:47:27 +09:00
itchyny
fe891c0ca3 define and use s:flatten_twice instead of using s:flatten twice for performance 2016-03-23 14:13:25 +09:00
itchyny
c2b956296e refactor s:expand: stringify the indices 2016-03-22 10:24:03 +09:00
itchyny
6d5b8787b7 refactor s:expand 2016-03-22 09:11:42 +09:00
itchyny
d3eff0e777 remove component/component_function check in s:expand 2016-03-21 18:55:47 +09:00
itchyny
8377b14171 refactor s:_expand: split the evaluate/normalize codes into functions 2016-03-21 17:11:34 +09:00
itchyny
6cd8fc8c3c add more tests for void string in s:expand 2016-03-21 16:30:01 +09:00
itchyny
db559ec96b refactor s:expand: make the function readable a little bit 2016-03-21 16:07:36 +09:00
itchyny
d43d48cc1d refactor s:expand, s:_expand: pass the component itself and its highlight name 2016-03-21 16:03:31 +09:00
itchyny
c806e08ac3 refactor s:expand, s:_expand: pass the name of the component 2016-03-21 15:59:43 +09:00
itchyny
048da5eb2d skip function check (try...catch captures) 2016-03-21 15:49:33 +09:00
itchyny
6c36d989e1 swapt the return valur of s:expand 2016-03-21 15:11:53 +09:00
itchyny
cf81e91f1f move winwidth to s:lightline 2016-03-20 19:41:41 +09:00
itchyny
a0e87fe732 refactor lightline#tabline a little bit 2016-03-20 11:01:57 +09:00
itchyny
f799d94a34 fix lightline#init: unlet the value because the type of the values in the configuration can change 2016-03-20 10:14:04 +09:00
itchyny
9f38b3c2d1 refactor lightline#init: move the default value to the script local variable s:_lightline 2016-03-20 10:11:24 +09:00
itchyny
c24e444064 improve mode_map 2016-03-20 09:33:23 +09:00
itchyny
8911dfacd4 retrieve the width of the window from g:lightline if available (for injection from the tests) 2016-03-20 00:58:31 +09:00
itchyny
9139d78f4b retrieve the width of the window in advance 2016-03-20 00:54:06 +09:00
itchyny
f7afdddb4f refactor lightline#tabs 2016-03-20 00:45:08 +09:00
itchyny
f126ec2dce tweak lightline#onetab 2016-03-19 22:36:37 +09:00
itchyny
42a0074262 refactor lightline#onetab 2016-03-19 22:13:57 +09:00
itchyny
f481fa3177 clear the tabline if disabled on lightline#init 2016-03-19 18:48:20 +09:00
itchyny
1d6870f31f stop using concatenation of commands for readability 2016-03-18 09:14:22 +09:00
itchyny
0f62126cbd use lower name for augroups 2016-03-14 03:34:37 +09:00
itchyny
bfbf2b2241 Refine lightline#tabline in order to make bufferline in tabline work as expected (close #155, related: #36, #89) 2016-03-14 03:28:41 +09:00
Anmol Sethi
6e60201371 No need to run has('win64') after has('win32')
has('win32') includes 64bit windows thus it is pointless to run
has('win64') afterwards.
2016-02-09 20:54:00 -05:00
Anmol Sethi
e71c3ebcfc Set highlight groups for terminal mode in lightline#highlight()
Fixes #144. I just added the missing terminal mode to modes in
lightline#highlight() if neovim is being used.
2016-02-09 20:50:33 -05:00
itchyny
387351a7f6 allow the colorscheme to use color names and none to ctermfg and ctermbg (fix #146) 2016-02-03 22:11:35 +09:00
itchyny
ae33e9300f adjust indent 2016-02-03 22:04:13 +09:00
Alexey Zabelin
dc3f3c87d7 Change tabline.middle color
Previously it was displaying the solarized dark version.

See #141
2015-12-30 18:08:11 -05:00