Christian Brabandt
52663545a9
Only reset to Normal highlighting if it is actually defined
...
closes #1415 and similar
2017-02-28 08:33:44 +01:00
Christian Brabandt
b66c1ef070
Redraw statusline on CompleteDone event
...
closes #1402
2017-02-11 20:11:59 +01:00
thawk
45d77ca909
Add 'scriptencoding utf-8' to all scripts
2016-09-24 08:16:30 +08:00
Christian Brabandt
6e3c0c1c14
do not cache status of statusline per tabpage
...
When cacheing the values of buffer number, window number per tabpage, we
might forget to update the statusline when it is actually needed, e.g.
on `:tab help h | norm! gt` which would then still display "Help" also
we are not in a help window anymore.
Therefore cache those values (including current tabpage number)
globally.
fixes #1253
2016-09-14 19:05:57 +02:00
Christian Brabandt
62eb44a9d6
disable refresh function, if airline has been disabled
...
fixes #1213
2016-07-24 09:58:52 +02:00
Christian Brabandt
41df6668c7
Reset w:airline_active on TabEnter
...
fixes #1182
2016-06-23 18:09:01 +02:00
Christian Brabandt
70c16f4c46
Reset mode when resizing
...
fixes #1156
2016-05-15 11:13:29 +02:00
Christian Brabandt
eef069d7bc
reset w:airline_active variable on TabEnter
...
fixes #1159
2016-05-13 14:41:31 +02:00
Christian Brabandt
46f854fc83
Use <nomodeline> if possible in :doautocmd
...
prevents closing of folds on CursorHold autocommand
when skip_empty sections is true
2016-05-13 11:22:12 +02:00
Christian Brabandt
64a3bfd439
Make sure the statusline option is correct
...
should fix #1131 completely, but literally comparing the
statusline option with the expected value
2016-04-28 07:17:44 +02:00
Christian Brabandt
b91f729586
call refresh function on window resize event
...
fixes #1144
2016-04-26 21:05:03 +02:00
Christian Brabandt
a5f7b9520a
Check the value of the 'stl' setting on SessionLoadPost
...
Restoring a session using vim -S with 'sessionopts' including options,
might overwrite the statusline function.
fixes #1131
2016-04-21 20:03:42 +02:00
Christian Brabandt
1e77e6cbcc
Merge pull request #1133 from blueyed/on_window_changed-only-once
...
Update each window only once in s:on_window_changed.
2016-04-20 21:31:52 +02:00
Daniel Hahler
5652b576b0
Add bang to function definitions
...
This makes it easier to reload the files, e.g. via vim-scriptease's
`:Runtime`.
2016-04-20 21:10:28 +02:00
Daniel Hahler
abcb3c4bb3
Update each window only once in s:on_window_changed.
...
We might come there several times for different autocommands.
The key uses bufnr/winnr and the number of total windows, and is stored
for the tab.
2016-04-20 21:06:04 +02:00
Christian Brabandt
7efa5067ef
fix performance regression
2016-02-07 22:17:17 +01:00
Christian Brabandt
87d60febaf
fix neovim color mode
2016-02-05 22:47:57 +01:00
Bailey Ling
ffe0fafa2d
fix load regression errors with recent theme changes
2016-01-31 01:41:13 -05:00
Tuomas Penttilä
905522cd8b
Fix issue when an airline theme and an external colorscheme have been defined
2016-01-30 21:35:14 +02:00
Christian Brabandt
e7560025d1
Fix break for non-existing g:airline_theme
...
fixes #969
2016-01-30 14:03:01 +01:00
Bailey Ling
d7fd8ca649
remove all themes from the core repository except for the default.
...
resolves #923
2016-01-29 22:24:49 -05:00
Bailey Ling
ce44577f1b
move branch variable into the extension
2016-01-29 09:29:40 -05:00
Jon Moses
e50b34ff63
Fix typo from PR #953
2016-01-28 07:58:29 -05:00
Christian Brabandt
70ca735af0
When calling :AirlineRefresh, also update branch name
...
fixes #584
2016-01-28 09:49:09 +01:00
Dan Church
1d6ec383e4
Simplify logic on if statement
...
Referencing the same boolean multiple times in a logical statement is
probably not what was intended.
2016-01-21 10:46:36 -06:00
Christian Brabandt
0a75e493a6
Also draw a nice statusline in the preview window
...
This fixes issue #858
previously, the the on_window_changed() function returned early when the
popupmenu was visible, which also means, that a new preview window
created by the popup menu would not be rendered correctly until one
moves into this window.
Therefore, I made it not return early, even if the popup menu was opened
to make sure, it will be rendered. However, since the popup menu is
open, this might have unwanted consequences, if some plugin or other
function from airline calls some normal mode command (e.g. wordcount
which should not be enabled for preview windows). So this might break
subtile in other areas later.
An alternative might be to just document the fact, that airline won't
color preview windows at all. But I don't like that either.
2016-01-19 20:48:56 +01:00
Bailey Ling
048b24a916
happy 2016!
2016-01-14 21:38:38 -05:00
Daniel Gray
be2ea5d7be
use -bar when defining commands
...
-bar allows the user to chain commands after it
2015-04-24 13:26:44 -05:00
Bailey Ling
1b8e4b965a
fix regressions introduced from recent init changes. resolves #721 .
2015-03-03 22:07:55 -05:00
Bailey Ling
b08784907a
eagerly bootstrap all the variables, but load extensions after vim is
...
loaded. #720
2015-02-26 16:15:39 -05:00
Bailey Ling
ec18e6639d
initialize before VimEnter, resolves #717 and #718 .
...
a lot of users are still using VimEnter instead of the new
AirlineAfterInit, this changes allows those configs to continue working.
2015-02-25 19:31:50 -05:00
Bailey Ling
59752b2659
clean up initialization code
2015-02-19 21:31:06 -05:00
Bailey Ling
1ca6ffb6d0
happy 2015
...
resolves #692 .
2015-02-13 21:47:43 -05:00
Bailey Ling
6efde428c6
turn on deprecation check
2015-02-13 21:47:43 -05:00
Bailey Ling
e10ef2fb25
also redraw the statusline for :AirlineRefresh (for #563 )
2014-07-30 15:29:43 -04:00
Bailey Ling
baed8ac063
happy 2014
2014-01-19 23:44:44 -05:00
Bailey Ling
592cc412cf
fix and improve airline toggling functionality.
2013-10-13 18:01:38 -04:00
Evgeni Kolev
382c000958
AirlineToggle should also toggle the tabline
2013-10-13 16:44:36 +03:00
Bailey Ling
af330f6a47
add AirlineRefresh command.
2013-10-06 09:01:01 -04:00
Bailey Ling
0ac25ecc30
extract buffer name logic into a formatter.
...
hold off on deprecation warnings for now...
2013-09-07 00:43:51 +00:00
Bailey Ling
65efb89145
turn on deprecation warnings.
2013-09-06 21:50:43 +00:00
Bailey Ling
7171a169f3
fix regression with ctrlp statusline not changing.
2013-09-01 19:19:34 +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
2d049949f0
fix indentation.
2013-08-30 21:58:29 +00:00
Bailey Ling
93eb0389b9
move init code into new file, add section.
2013-08-30 21:56:12 +00:00
Bailey Ling
fa517238c7
introduce parts metadata.
2013-08-30 21:51:10 +00:00
Bailey Ling
a927bf9475
automatic separators.
2013-08-29 00:57:58 +00:00
Bailey Ling
e13a4c8b1a
convert the rest to use define section.
2013-08-29 00:38:33 +00:00
Bailey Ling
bdd758dd38
convert branch/hunks/bufferline to function names.
2013-08-29 00:15:07 +00:00
Bailey Ling
e10b690cdf
convert mode/paste/iminsert parts to function names.
2013-08-29 00:09:22 +00:00
Bailey Ling
eadeee316c
fixes a weird error after neobundle installs a new plugin.
2013-08-28 01:34:10 +00:00
Bailey Ling
14656f766b
add deprecation warnings.
2013-08-28 01:28:31 +00:00
Bailey Ling
39c3ba360e
support configurable layouts.
2013-08-28 00:00:23 +00:00
Bailey Ling
6fc8c00ef1
place syntastic and whitespace into parts.
2013-08-27 23:38:34 +00:00
Bailey Ling
f9718e6b65
place tagbar into parts.
2013-08-27 23:25:55 +00:00
Bailey Ling
24a2035e42
place bufferline into parts.
2013-08-27 23:24:01 +00:00
Bailey Ling
2708951715
place hunks and branch extension into parts.
2013-08-27 23:22:26 +00:00
Bailey Ling
ff975d3d7d
move file encoding/type into a part.
2013-08-27 18:39:34 +00:00
Bailey Ling
85c1f5ad03
rename fragments to parts.
2013-08-27 18:08:50 +00:00
Bailey Ling
83a1d7e47c
introduce fragments variable to store all possible parts.
2013-08-27 17:47:31 +00:00
Bailey Ling
6dd4cd5423
clean up how symbols are defined.
2013-08-26 23:39:25 -04:00
Bailey Ling
fe24924ad3
convert iminsert into a fragment.
2013-08-26 23:07:14 -04:00
Bailey Ling
e919663781
always enable paste detection.
2013-08-26 22:55:11 -04:00
Bailey Ling
bc03ab5cbf
support section truncation based on window width. resolves #190 .
2013-08-27 01:16:56 +00:00
Bailey Ling
04e00d6933
\n only works with double quotes.
2013-08-26 15:32:18 +00:00
bling
39c8dcd950
auto-source themes when they are changed.
2013-08-25 21:34:26 -04:00
Bailey Ling
b34aa78c5a
deprecate airline_detect_iminsert
2013-08-24 22:24:36 -04:00
Bailey Ling
c517f9c6f9
fix potential performance problems with completeopt+=preview
2013-08-24 21:17:16 -04:00
Bailey Ling
e8d0d24163
prefer function name instead of funcref.
2013-08-24 01:21:09 +00:00
Bailey Ling
261dafca9d
fold exclude funcrefs into the default one.
2013-08-22 17:32:44 +00:00
Jacob Walker
3920817442
Better toggling of powerline fonts
...
+ Check the value of airline_powerline_fonts not just existence
2013-08-22 09:14:17 -05:00
Bailey Ling
e4a0fe1d9c
move paste symbol variable into extension, update docs.
2013-08-20 23:16:39 +00:00
Bailey Ling
cbb9bea9db
allow warning section to be overwritten ( #136 ).
2013-08-20 15:02:17 +00:00
Bailey Ling
e2a758e309
deprecate airline_readonly_symbol. move into gutter by default, so it does not conflict with bufferline logic.
2013-08-20 08:11:38 -04:00
Bailey Ling
e65aefac00
deprecate airline_detect_whitespace
2013-08-20 03:39:51 +00:00
Bailey Ling
71c8156f00
deprecate all g:airline_enabled_* variables.
2013-08-20 03:38:02 +00:00
Bailey Ling
494d15232c
reduce pollution of global scope variables
2013-08-20 03:38:02 +00:00
mattn
715cf33d56
Prior checking user defined theme
2013-08-20 10:46:44 +09:00
Bailey Ling
ec20ea06c3
fix autoselection of theme for certain startup configs.
2013-08-19 18:17:06 +00:00
Bailey Ling
de69bba26e
re-enable gitgutter integration with new upstream function. resolves #154 and #153 .
2013-08-19 16:03:10 +00:00
Bailey Ling
2a02afb918
default whitespace symbol to non-unicode unless powerline fonts are enabled ( #155 ).
2013-08-19 13:33:13 +00:00
Bailey Ling
16f2d7013d
disable hunks by default, a couple bugs remaining.
2013-08-19 13:22:24 +00:00
Bailey Ling
da4d0730d3
improve gitgutter integration and algorithm
2013-08-18 21:39:27 +00:00
Bailey Ling
aa4c9977df
temp disable, some errors weird cases
2013-08-18 21:08:00 +00:00
Bailey Ling
dad0d5a8d8
add gitgutter integration.
2013-08-18 21:02:33 +00:00
Bailey Ling
8f0401580b
fix airline theme not getting loaded on startup ( #151 ).
2013-08-18 19:02:14 +00:00
Bailey Ling
60dd8ed0a8
fix error on startup in certain configurations ( #150 ).
2013-08-18 18:13:34 +00:00
Bailey Ling
0a88fd81d3
update branch head all the time ( #42 ).
2013-08-18 17:22:35 +00:00
Bailey Ling
e26165caa6
support base16 variant of solarized. resolves #148 .
2013-08-18 14:13:47 +00:00
Bailey Ling
03c08e819c
autoload themes to match colorscheme. resolves #145 .
2013-08-18 04:44:13 +00:00
Bailey Ling
3fbdd28e5d
add profiler. optimize separator highlighting.
2013-08-17 17:35:06 +00:00
Bailey Ling
2f92346194
add highlighter class
2013-08-17 12:52:25 +00:00
Bailey Ling
c017c9fbb3
miscellaneous minor changes
2013-08-16 14:57:48 +00:00
Bailey Ling
12fc908f43
add support for the command-line window
2013-08-15 15:54:14 -04:00
Bailey Ling
91904d942e
check initialized so autoloaded plugins happen first
2013-08-15 15:02:54 -04:00
Bailey Ling
f5afe4bcac
Merge pull request #141 from chrisbra/master
...
added airlinetoggle function
2013-08-15 11:58:28 -07:00
Christian Brabandt
8ec527465d
added airlinetoggle function
2013-08-15 20:48:59 +02:00
Bailey Ling
6a0163104a
unbreak csv extension. redefine gutter as the middle.
2013-08-14 03:53:29 +00:00
Bailey Ling
10e8146d7b
improve docs, remove deprecation warnings
2013-08-14 02:32:05 +00:00
Christian Brabandt
c5e21aa170
added csv extension
2013-08-14 00:11:51 +02:00