Christian Brabandt
f86f1e8103
whitespace: Only refresh on changes to buffer
...
Should prevent too many redraws of Vim
2017-06-26 10:04:43 +02:00
w0rp
c8a5efc11e
Update the ALE extension so it loads better and uses the new count format
2017-06-25 19:49:18 +01:00
Christian Brabandt
0a352c9f5b
branch: don't check untracked status for files in vcs dir
...
Currently, vim-airline will check untracked status for files e.g. living
in .git. So when editing .git/config it will show as being untracked.
While technically, this is correct I prefer not to see this for those
files. So skip the check for those files.
2017-06-24 14:03:40 +02:00
Christian Brabandt
fde2511201
Syntastic: remove unused variable
2017-06-22 09:47:01 +02:00
Christian Brabandt
57e564b227
Add termguicolor check for is_win32term
...
closes #1259
2017-06-21 15:44:58 +02:00
Christian Brabandt
7d082c03b2
Do not clear intro screen
...
if airline is initialized too early and some :hi commands are run,
this will force a redraw in Vim which will result in the intro screen
being cleared.
Currently, this does not work for gvim, not sure why.
closes #1476 (well only partly, until i have discovered, why for gvim it
doesn't work).
2017-06-21 13:21:13 +02:00
Christian Brabandt
87cdf8f6c4
highlighter: Make sure hi group exists and is valid
...
previously we only checked, that the group exists, however
if loading a new color scheme, this might lead to the group becoming
cleared. That means it still exists, but the highlighting group would
not show anything. Therefore, also check that the group is not cleared.
closes #1483
2017-06-21 09:19:51 +02:00
Christian Brabandt
52c0afadb9
Merge pull request #1413 from chrisbra/wordformat
...
Improvements to wordcount formatting
2017-06-20 23:31:15 +02:00
Christian Brabandt
2e3055541e
syntastic: distinguis errors and warnings
...
Currently the syntastic results are simply dumped into the error
section, however syntastic does internally distinguish between error and
warning sections.
Therefore change the syntastic extension to dump errors into the error
section and warnings into the warning section.
closes #1480
2017-06-20 22:26:22 +02:00
Christian Brabandt
d2b697d27b
ale ext: fix syntax error
2017-06-20 22:23:46 +02:00
Christian Brabandt
7f3d6287b5
ale ext: simplify logic
2017-06-20 21:20:24 +02:00
Christian Brabandt
1891933e59
branch: better display of branch for both hg and git
...
If a file is edited inside a git repository, which lies within a git
repository, the branch extensions shows 'gitmaster | hgdefault'
To make it more obvious, that we are looking into both repositories
here, use 'git:master | hg:default'
closes #1482
2017-06-20 17:47:07 +02:00
Christian Brabandt
c436592559
bufferline: take 'acd' into account
...
vim-airline does use a different section (path/file) depending on
whether 'acd' is set. Later in the bufferline extesion however, it
unconditionally overwrites the 'file' section, regardless of whether
this section is actually used.
Therefore the bufferline section needs to check this option as well.
fixes #1487
2017-06-20 13:58:39 +02:00
Christian Brabandt
e16ff7cc88
Do not error out, if a netrw variable is not defined
...
This should not happen, however being a bit more error tolerant
shouldn't hurt, so let's just fall back to 'normal' for the
g:netrw_sort_direction in case it is not defined (which should be the
default anyhow).
fixes #1492
2017-06-19 15:56:17 +02:00
Oz Elentok
7865dc8149
Improve denite extension performance
2017-06-12 22:00:25 +03:00
Maxim Gonchar
8e64138ef4
Add vimtex support
...
Indicates:
- whether the file is considered to be main or local
- whether the viewer is opened
- whether the compilation is running
- whether the compilation is continuous
Added:
* `vimtex` existence check
* variables documentation
TODO: readme and a screenshot
Update readme.md
Update doc
Update screenshot url
2017-05-08 13:07:13 +03:00
Christian Brabandt
d593359500
shorten filetype only when winwidth is < 90
2017-05-02 22:06:36 +02:00
Christian Brabandt
a950a2938a
shorten tagbar extension on short windows
2017-05-02 21:22:47 +02:00
Christian Brabandt
4a47cd70cd
correctly check w:airline_skip_empty_sections var
2017-04-11 22:10:43 +02:00
Christian Brabandt
f76ede3b28
Make skip_empty variable overridable per window
...
The denite extension functions return the content of some buffer-local
variables. Those variables are not defined, the first time the they are
accessed and therefore, the statusline is not updated later when
g:airline_skip_empty_sections is set.
So disable this variable in this window, by setting the
w:airline_skip_empty_section=0 variable in the denite window.
closes #1454
2017-04-10 09:29:27 +02:00
Shivansh Rai
223624d3e9
Update icon spacings
...
The line numbers start to merge with icons when they get large
Reference: https://image.ibb.co/e7KGaa/airline.jpg
2017-03-17 19:08:47 +05:30
Christian Brabandt
46b0b6bf5a
Merge pull request #1427 from thatsmydoing/denite
...
Add support for denite
2017-03-15 10:06:19 +01:00
Thomas Dy
c9a0c62b1b
Add support for denite
2017-03-15 16:41:50 +08:00
Christian Brabandt
17d2db93fd
Check, that fg color can't be negative
2017-03-13 18:50:19 +01:00
Christian Brabandt
ba7d8c59f7
Call hg qtop with locale set to C
...
closes #1438
2017-03-13 09:49:02 +01:00
Chris White
fb6231b479
Permit appending content to a theme
...
When ctrlp is not loaded, do not finish (terminate script execution).
Instead, just skip assigning the ctrlp colors.
2017-03-12 18:16:26 -04:00
Christian Brabandt
134c0204f3
Do not return a negative background color
...
fixes #1429 and similar
2017-03-05 22:18:04 +01:00
Lingnan Dai
7f19896dc6
Fix problems with AirlineSelect{Prev,Next}Tab
...
Use the entire list of buffers instead of the currently visible ones
2017-02-28 15:56:37 +00:00
Christian Brabandt
fbd791e7f0
Merge pull request #1424 from tweekmonster/powerline
...
Fix g:airline_powerline_fonts check
2017-02-28 08:51:08 +01:00
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
Tommy Allen
9876a0a2de
Fix g:airline_powerline_fonts check
2017-02-27 22:32:06 -05:00
Alexey Zhikhartsev
3c6135d75f
Add a function to disable whitespace-detection
...
Useful to call for particular file types (e.g., .tex files):
ftplugin/tex.vim:
call airline#extensions#whitespace#disable()
2017-02-26 10:35:17 +01:00
Christian Brabandt
9d89375b8f
Do not update wordcount on unknown buffers
2017-02-26 10:25:21 +01:00
Christian Brabandt
727a2b48d9
Rename wordcount update function
2017-02-26 10:24:08 +01:00
Christian Brabandt
7e6986651c
Fix stupid typo
2017-02-25 22:13:16 +01:00
Christian Brabandt
f8c85e3e53
for airline ascii symbols set g:airline_symbols_ascii
2017-02-25 17:39:32 +01:00
Jorrit Visser
078537f1e2
Add interface fallback (Powerline>Unicode>ASCII)
...
Basically what the title says. First check if the user has Powerline,
fall back to Unicode symbols if he doesn't and fall back to ASCII
symbols if he doesn't have that either.
2017-02-24 22:23:41 +01:00
Jorrit Visser
72478dee02
Make vim-airline pretty without Powerline
...
Vim-airline is not a looker without a Powerline font. This fixes that!
* Ugly separator symbols are hidden
* New branch (ᚠ), line (㏑), maxline (☰) and whitespace (☲) symbols
* Replace old whitespace (✹) symbol in Powerline with the new (☲) more logical one
2017-02-24 22:23:41 +01:00
Christian Brabandt
db01efd508
Better reformat wordcount format in with separator
2017-02-24 18:28:48 +01:00
Christian Brabandt
b2bbe7dbc2
Small wordcount format output on windows < 80
2017-02-24 18:25:29 +01:00
Christian Brabandt
562d060b08
Reset wordcount cache on window size
...
so the format can make a better guess what to display on different
window sizes.
2017-02-24 18:24:30 +01:00
Christian Brabandt
d8b62aa426
Remove unused variable
2017-02-24 18:22:25 +01:00
Christian Brabandt
f1574c4e0a
define highlighting group, if it not exists
...
previously, it could have been skipped, if the old highlighting
attribute was the same as the current one. However, if the group does
not exist, it should still be defined
closes #1404
2017-02-20 21:30:10 +01:00
Christian Brabandt
69b132a6f4
Make sure, the highlighting group will be defined
...
If a color value of ['', '', 'NONE', 'NONE', ''] is given as value to
the highlighting group, the resulting group definition would look like
this:
hi Normal ctermfg=NONE ctermbg=NONE
which would result in the highlighting group being cleared (or even no
set at all), therefore check that at least one other value exists and if
not fall back to the highlighting definition of the Normal group.
2017-02-20 21:30:10 +01:00
Christian Brabandt
583121bbc9
before trying to return hi attributes, check the group exists
...
This prevents trying to access twice the highlighting groups
and should slightly speed up airline.
2017-02-20 21:29:37 +01:00
Jorrit Visser
8776a3e058
Truncation fix
...
Line numbers are now displayed before the error, instead of after, preventing truncation (and thus making the whitespace/indent section essentially useless in smaller terminals)
2017-02-07 14:20:56 +01:00
Christian Brabandt
7df411d59b
Add missing comma
...
fixes #1386
2017-01-27 12:10:07 +01:00
Christian Brabandt
1a79d148dc
do not add two bold accents to linenr and maxlinenr
2017-01-27 11:25:37 +01:00
Christian Brabandt
b56a064377
Use get() to access members of getwininfo() function
...
And add default value, in case the 'loclist' and 'quickfix' entry is not
available (can happen on versions without +quickfix feature).
Fixes #1379
2017-01-21 22:02:40 +01:00
Jerome Reybert
a1db013d3f
Add vimagit extension
2017-01-19 14:02:53 +01:00
Christian Brabandt
9b1770f246
hg extension did not work on Windows
...
remove extra file argument
closes #1367
2016-12-31 23:50:39 +01:00
YoungHoon Rhiu
d60323d623
Add vim-xkblayout extension to display keyboard layout
2017-01-18 12:34:14 +09:00
Christian Brabandt
a2431f2adb
Check s:jobs dictionary before trying to remove jobid
...
fixes #1363
2016-12-29 11:22:55 +01:00
Christian Brabandt
706cee277a
Add tab indicator for tabline when buffers are shown
...
closes #1329
2016-12-16 23:42:58 +01:00
Christian Brabandt
73a1238205
wrong quoting of condition
2016-12-14 16:10:33 +01:00
Christian Brabandt
a69834f7dc
Make fileformat output truncatable
...
closes #1309
2016-12-13 21:47:09 +01:00
Christian Brabandt
a0ea8db1fc
Make the wordcount ext more flexible for the def. filetypes
...
This allows the user to further adjust the
g:airline#extensions#wordcount#filetypes configuration variable even
after Vim has started up.
2016-12-13 21:27:53 +01:00
Christian Brabandt
c375d050a8
Do not add extra %( %) in the statusline
...
This was used as a workaround to fix a highlighting bug, which was fixed
in Vim 7.4.1511 and therefore, we need to correctly detect that the
patch was applied and in that case skip adding those extra groups.
As a bonus, when not using those empty %( %) groups, the
skip_empty_section test will correctly handle this and therefore this
closes #1351
2016-12-13 21:14:51 +01:00
Christian Brabandt
7cd7972bbe
cleanup unlet calls
...
Instead of looping through the list and unletting each value separately,
join the list and their names together and unlet them all together.
2016-12-13 20:28:30 +01:00
Hirokazu Hata
dfc0cb772a
Add dict to function refferencing self
...
This is no explicit problem in Vim, however Neovim diverged in this
behaviour from Vim and requires the dict attribute to be present before
accessing the self attribute.
See neovim/neovim#5763
2016-12-12 19:26:52 +01:00
Sam Fuller
7cb5c24151
prevent windows from closing on middle_click
...
Adding an option to prevent windows from being closed when a buffer in
the tabline is middle clicked and the clicked buffer is currently open
in a window.
When this option is enabled, instead of closing the window a new buffer
will be opened in all of the windows editing the clicked buffer instead.
This is my first pull request AND my first experience with vimscript, so
my apologies if this is a bit sloppy 😄
2016-12-09 13:20:48 +01:00
Christian Brabandt
781b4ea6a2
Merge pull request #1321 from chrisbra/getwininfo
...
Use getwininfo() for checking quickfix window
2016-12-09 12:59:46 +01:00
Nate Soares
17b6bd9c8f
Fixed bug where highlighting on inactive windows wouldn't refresh.
...
This seems to be an omission/regression from #afb75adc, where inactive
highlight updating was accidentally removed when fixing another bug.
Solution: Add back the deleted statement. closes #1339
Repro steps:
1. Install some theme that depends on the background color
(Soares/base16.nvim has a bunch)
2. `set background=dark` in your vimrc, and `colorscheme` one of the
aforementioned schemes.
3. Open a split window. Note the colors on the inactive window's airline.
4. `set background=light` manually. note the colors on the inactive
window's airline. Note how they have not updated. (In particular,
airline_c_inactive has updated, but all the other inactive groups
have not.)
5. Enter the inactive window. Exit the inactive window. Observe that the
colors are now correct (showing that it is in fact a problem with the
airline load_theme code, and not with the theme).
It seems strange that the code as written only expects
airline_c_inactive to have styling; perhaps there is some norm that
themes are supposed to handle inactive windows in a particular way? For
the record, my theme dis omething like this:
```
let s:IA1 = s:airlist('similar1', 'similar2')
let s:IA2 = s:airlist('similar1', 'similar2')
let s:IA3 = s:airlist('similar1', 'similar2')
let g:airline#themes#{s:palette}#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
let g:airline#themes#{s:palette}#palette.inactive.airline_warning = s:airlist('base', 'contrast3')
let g:airline#themes#{s:palette}#palette.inactive.airline_error = s:airlist('base', 'antibase')
```
2016-12-09 12:53:35 +01:00
Christian Brabandt
0357b4fcbe
Merge pull request #1348 from shaunbrady/exclude_at_runtime
...
Make ...#excludes|exclude_preview runtime configurable
2016-12-06 21:18:38 +01:00
Christian Brabandt
4c39344cc1
Merge pull request #1334 from chrisbra/worktrees
...
Add Worktrees support
2016-12-06 21:17:51 +01:00
Shaun Brady
718107c107
Make ...#excludes|exclude_preview runtime configurable
...
airline#extensions#tabline#excludes and
airline#extensions#tabline#exclude_preview previously had no impact if
changed after vim load. This fixes that.
2016-12-03 23:40:15 -05:00
Christian Brabandt
04be981de9
make ...#fnamemod configurable during runtime
...
airline#extensions#tabline#fnamemod would be initialized and could not
be changed during runtime, so fix that.
closes #1347
2016-12-02 13:40:34 +01:00
Christian Brabandt
ccdc3d6c60
Merge pull request #1337 from mhartington/master
...
feat(): allow for buffer index formatting
2016-11-26 14:26:47 +01:00
mhartington
ee8173e41d
feat(): allow for buffer index formatting
2016-11-25 12:36:55 -05:00
Christian Brabandt
53c8aa4fd6
enable wordcount for mail and tex filetypes
2016-11-24 15:20:38 +01:00
Christian Brabandt
b67509189b
check for correct variable
2016-11-23 16:35:01 +01:00
Christian Brabandt
d4a239f14a
Make airline aware of git worktrees
...
Currently vim-airline assumes, that the git_dir is part of the path for
the file being edited. This has changed, since git supports worktrees.
So take care of b:git_dir (which is set by fugitive) being a path
differently from the absolute path of the file being edited (however, it
should include the substring worktree in that case).
2016-11-23 16:33:12 +01:00
Richard Russon
4e93a90441
Abbreviate the text for 'po' translation files.
...
A typical status line for a 'po' (Portable Object) translation file is:
1152 translated messages, 91 fuzzy translations, 42 untranslated messages.
Adding a substitute(), tidies this to:
1152 translated, 91 fuzzy, 42 untranslated
which is still informative, but less verbose.
2016-11-22 11:24:10 +00:00
Grzegorz Milka
241f324b39
Do not forward v:shell_error on command fail.
...
airline#system#util for nvim used to fall back to 'system' implementation on
command error. This behavior caused conflict with other plugins if 'util' was
executed with a failing command as part of a ShellCmdPost event.
This commit makes 'util' interpret command error as persistent and not call
'system' in such a case.
This commit fixes #1317 .
2016-11-20 10:16:13 +01:00
Christian Brabandt
cebfc9a64b
Use getwininfo() for checking quickfix window
...
Since Vim8 we have win_getid() and getwininfo() functions to get
information about the current window. So we can use those functions to
find out, whether the current window is a quickfix or location list
window.
This avoids using a redir() over the :ls command and trying to
manually match the string quickfix and should be faster and also be more
robust, as the redir may fail if done recursively.
fixes #1319
2016-11-16 20:14:27 +01:00
Grzegorz Milka
433d5d8f97
Use neovim's async job's instead of system
...
This commit makes branch.vim use neovim's async jobs instead of a system()
function. This way we avoid the v:shell_error overwrite bug and allow live
updates of the untracked status.
2016-11-04 19:09:05 +01:00
WADA Takashi
e7056db27a
Fix when using vim-lawrencium
2016-11-04 10:54:39 +09:00
Grzegorz Milka
3899f848a7
Adapt data structures of branch.vim to async
...
* The head string is now calculated iff it has changed.
* The not exists symbol for current file appears as soon as its status is known.
* Fixes various problems with asynchronous status checking, such as:
* The not exists symbol keeps appearing and disapearing. This happened when
file was marked as not existing, the untracked cache was invalidated, and
the cache update is started, but in the meantime, the head string
calculation used the current (empty) value of the cache.
* The not exists symbol never appears, because cache keeps getting invalidated
before b:airline_head is emptied and updated.
closes #1306
2016-11-03 21:03:13 +01:00
Christian Brabandt
02ecb8631d
fix missing part of commit 3bd6cb5ee4
...
There was a part missing of #3bd6cb5ee4981227
add it back
2016-11-03 17:54:50 +01:00
Christian Brabandt
6dae3452db
Fix order of statements
...
Commit #3bd6cb5ee498 causes an error, because a variable was used
before it was declared. Fix this.
2016-11-03 17:26:32 +01:00
Grzegorz Milka
3bd6cb5ee4
Refactor branch.vim to avoid code duplication
...
* Introduce a config variable that holds the vcs-dependent parts of code.
* Removes `get_*_untracked` duplication by merging their logic together.
* Removes custom checks for 'git' or 'hg'. Functions now rely on provided config
argument.
* Use loops instead of manually specifying each handled VCS.
closes #1303
2016-11-03 17:19:17 +01:00
Christian Brabandt
516870bf9f
Check for correct async condition
...
fixes #1308
2016-11-02 16:43:47 +01:00
Christian Brabandt
0ea4daa103
Merge pull request #1297 from chrisbra/mq
...
Add mq status for hg repositories
2016-10-26 20:47:45 +02:00
Christian Brabandt
98fe4eabd4
Merge pull request #1299 from gregorias/fix_git_untracked
...
Display not exists symbol correctly in Git repos
2016-10-26 20:47:28 +02:00
Grzegorz Milka
2af2bdb424
Display not exists symbol correctly in Git repos
...
This commit fixes a bug, where untracked files in Git repos did not get the not
exists symbol displayed. The fix works by replacing the previous check for
whether currently edited file is a directory or not with a check based on
`findfile`. More detailed explanation follows.
VCS extension to vim-airline checks whether currently edited file is untracked.
The previous `s:get_git_untracked` implementation, which was used for the
aforementioned purpose for Git repos, was buggy, because it did not return the
untracked symbol in most situations, i.e. the edited file is untracked, but it
was treated as if it wasn't.
The root cause was the second clause in boolean expression checking the output
of `git status`:
if output[0:1] is# '??' && output[3:-2] is? a:file
It was added to make sure we are not checking a directory, but at this point in
the program `a:file` is an absolute path, while output of `git status` is a
relative path from the root of git repo. So the `is?` expression failed in most
situations.
2016-10-25 19:26:44 +02:00
Christian Brabandt
5fe511c20b
Merge pull request #1298 from chrisbra/shorten_mode
...
Shorten mode message for small windows
2016-10-25 08:01:07 +02:00
Christian Brabandt
6a155fabda
guard against loading extensions twice
...
fixes #1300
2016-10-24 12:14:30 +02:00
Christian Brabandt
69020706b2
Shorten mode message for small windows
2016-10-20 22:57:26 +02:00
Christian Brabandt
14ab47cae6
Add mq status for hg repositories
...
Now that we have async feature for Vim 8, we can add the output of 'hg
qtop' back to the statusline if it is supported
2016-10-20 22:46:24 +02:00
Aditya
be6e3db68b
on_exit function fix if self.file is missing
2016-10-18 22:23:07 -04:00
Christian Brabandt
8964603844
fix missing declaration
2016-10-14 11:14:33 +02:00
Bjorn Neergaard
06351e86df
Add support for ALE, the Async Linting Engine
...
Ale is a plugin that lints text in the background, as you type!
It is new, but under [rapid development](https://github.com/w0rp/ale ).
2016-10-14 10:36:21 +02:00
Bjorn Neergaard
45e5c907be
Add support for flattened and NeoSolarized themes
...
These are forks/alternate versions of Solarized, without many of the
dynamic elements or the extensive terminal support.
[flattened](https://github.com/romainl/flattened ) is a basic, totally
static version of Solarized with only ansi and GUI support.
[NeoSolarized](https://github.com/iCyMind/NeoSolarized ) is a version
focusing on true/24-bit color support and NeoVim support, with limited
dynamic options.
[solarized8](https://github.com/lifepillar/vim-solarized8 ) is a version
focusing on vim/neovim true color support and limited dynamics. It is
already supported (`match()` matches it), but it is at least worth
noting.
Many users, including myself, use these themes over the original
Solarized for performance or technical reasons. Many users believe they
are incompatible with airline because automatic theming no longer
functions. While they can manually override the theme, most people seem
to miss this option in the documentation and give up.
It would be a nice quality of live improvement if airline detected these
themes and enabled its own Solarized theme automatically to match.
2016-10-14 10:36:21 +02:00
Christian Brabandt
4f8a16c31e
fixup for async feature
2016-10-14 10:36:21 +02:00
Christian Brabandt
81ccd3bdf6
po-extension: Make asyncable
2016-10-14 10:36:21 +02:00
Christian Brabandt
c39e5f82cc
check for existence of git/hg before calling them
2016-10-14 10:36:21 +02:00
Christian Brabandt
f706edee9f
init async global variables
2016-10-14 10:36:21 +02:00
Christian Brabandt
57ca6c9e78
include workaround from c1704a2de0
...
add workaround from commit c1704a2de0
to prevent overwriting
v:shell_error
2016-10-14 10:36:21 +02:00
Christian Brabandt
ffa3d59af2
branch ext: use async functions for system() commands
...
Make use of vim 8 async functionality and use it to get the vcs status
for the branch extension.
Won't work with neovim.
fixes #1266
2016-10-14 10:36:21 +02:00
Benjamin Thomas
78439b2b35
Fix whitespace symbol empty string has extra space
...
This makes it so if the whitespace symbol (g:airline#extensions#whitespace#symbol) is an empty string, we don't end up wth two characters at the beginning of the message.
2016-10-02 01:22:50 -07:00
Christian Brabandt
f5359f9177
do not skip empty sections for the tabline
...
commit #3d667c32d3ac04 fixed a bug, that a section was not considered
empty for the statusline, also g:airline_skip_empty was set.
However unfortunately, this lead to a regression, makeing the tabline
ugly, because sections, that contained a single highlighting group would
be considered empty and would therefore be skipped. Since this is not
what is expected, make s:section_is_empty() return zero, when it notices
we are looking at a tabline.
fixes #1273
2016-09-27 21:44:00 +02:00
Saad Malik
3c33251ee7
Support for neomake
...
Added support for neomake plugin; similar to syntastic.
Shows warning and error counts in the airline statusbar.
2016-09-27 21:21:35 +02:00
Christian Brabandt
1c052e39b1
Merge pull request #1271 from chrisbra/highlighter_bug
...
Use the correct highlighting for the inactive window
2016-09-26 21:13:02 +02:00
Christian Brabandt
29c556dba4
use correct groupname for inactive windows
...
airline_c (which contains the filename) usually is used together with
the buffer number, so that several windows showing the a different
buffer do not share the same highlighting group.
This was fixed in 73aea86a
, but unfortunately it was forgotten to not
only add this to the current group, but also modify the previous group
accordingly. This is what this patch does.
fixes #1268
2016-09-26 21:12:15 +02:00
Christian Brabandt
3d667c32d3
for empty sections, make test return true
...
fixes #1231
2016-09-24 22:06:41 +02:00
Christian Brabandt
513afd25bc
Merge pull request #1263 from thawk/master
...
Set script encoding to avoid script parsing problem in non UTF-8 VIM
2016-09-24 21:55:50 +02:00
thawk
45d77ca909
Add 'scriptencoding utf-8' to all scripts
2016-09-24 08:16:30 +08:00
Christian Brabandt
c1704a2de0
Do not overwrite v:shell_overwrite after ShellCmdPost
...
Prevents resetting v:shell_error from the followin system() call in
get_git_untracked.
Fixes #1266
2016-09-23 16:11:53 +02:00
R.Chavignat
da457ae5ea
Add support for b:airline_whitespace_checks variable and documentation
2016-09-22 14:27:07 +02:00
Christian Brabandt
65b9aa4856
Check for existence of key in context dict before using it
...
fixes #1251
2016-09-09 08:07:07 +02:00
Christian Brabandt
c058922358
do not use utf-8 chars, if encoding is different
...
fixes #1234 #1248
2016-09-08 21:33:39 +02:00
Christian Brabandt
afee79bbe0
Merge pull request #1250 from chrisbra/1233
...
Do not unconditionally modify airline_c_inactive
2016-09-08 21:30:20 +02:00
Simon Ratner
0b1df0c524
Add null accent, to allow accents to be removed
2016-09-08 21:24:04 +02:00
Christian Brabandt
73aea86a7a
Do not unconditionally modify airline_c_inactive
...
consider a window with these splits:
,----
| file1
| ---
| file2
| ---
| file1
`----
If the top buffer is the active one and you start modifying this buffer,
this will also reset the highlighting for the inactive buffer2, since
the highlighting group 'airline_c_inactive' is used for both windows
(one having the unmodified buffer 'file2' and one having the modified
'file1').
This lead to the incorrect highlighting of the buffer name of file2.
Airline basically already created different airline_c<bufnr>_inactive
highlighting groups, but unfortunately did not use them.
Therefore, make the builder aware of this and always append the buffer
number to the group 'airline_c' if it is in an inactive window.
2) we need to make sure, the highlighting won't get overwritten, so
make the highlighter aware of this situation as well, by appending the
buffer number to the group name, if it creates the 'inactive' mode
groups and a buffer number has been given.
this fixes #1233
2016-09-08 18:46:11 +02: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
Christian Brabandt
54e4772ef8
Merge pull request #1239 from chrisbra/1230
...
Do not cache gitgutter values
2016-09-05 19:32:24 +02:00
Christian Brabandt
5eaf658b9c
Merge pull request #1240 from chrisbra/1226
...
Add User autocommand for Theme changing
2016-09-05 19:32:13 +02:00
Ythildyr
afb75adc11
:AirlineRefresh
not work correctly
...
If active buffer is modified, `:AirlineRefresh` apply `normal` highlight
instead of `normal_modified` highlight.
No particular config is requiered to reproduce this bug.
I see this bug with option `g:airline_skip_empty_sections` set.
Add any modification at the active buffer return to normal mode,
**do not save** and wait a few seconds, you can see highlight change to
normal but file is modified.
Without option `g:airline_skip_empty_sections`, add any modification at
the active buffer return to normal mode and type `:AirlineRefresh` you
can see change to bad highlight .
2016-08-28 14:41:45 +02:00
Christian Brabandt
7612aaf701
Add User autocommand for Theme changing
...
fixes #1226
2016-08-24 21:27:49 +02:00
Christian Brabandt
43e3ef5428
Do not cache gitgutter values
...
fixes #1230
2016-08-24 21:22:28 +02:00
Bill Neubauer
460ed02864
Add Go to the list of C-like languages.
2016-07-26 10:06:40 +09:00
Julien Pivard
53dcd8a49c
Hunks won't appear if g:airline_skip_empty_sections = 1
2016-07-24 21:15:10 +02:00
Christian Brabandt
657cf773ad
Merge pull request #1206 from chrisbra/width
...
Cache hunk values, shorten for small windows
2016-07-24 10:08:40 +02:00
Christian Brabandt
797ad1ea79
Merge pull request #1207 from chrisbra/ctrlspace
...
Map keys in ctrlspace mode
2016-07-24 10:07:36 +02:00
Christian Brabandt
4d0c4f6b1e
Merge pull request #1197 from chrisbra/eclim
...
Cache eclim errorlist
2016-07-04 20:29:08 +02:00
Christian Brabandt
fdd29caef4
shorten filetype for smaller screens
2016-07-03 21:32:33 +02:00
Christian Brabandt
a6c04644ef
Map keys in ctrlspace mode
...
fixes #1181
2016-07-03 21:09:42 +02:00
Christian Brabandt
8fda614d0d
Cache hunk values, shorten for small windows
...
Cache the hunk values. In case of short windows, shorten the hunk string
a little bit and make the branch extension take the hunk value into
account when deciding how much to shorten it.
2016-07-03 20:44:05 +02:00
Daniel Hahler
63dc4ba2a4
tabline: do not change the signature of get_buffer_name
...
Thanks to @wsdjeg about notifying me in
https://github.com/vim-airline/vim-airline/commit/e1f7bf#commitcomment-18104843 .
Fixes: https://github.com/vim-airline/vim-airline/issues/1204 .
2016-07-02 16:24:47 +02:00
Christian Brabandt
e1f7bffe71
Merge pull request #1189 from blueyed/tabline-only-handle-visible-buffer-names
...
Tabline performance: only pass in visible buffers to formatters
2016-07-02 10:57:50 +02:00
Christian Brabandt
c6f5d8b823
Merge pull request #1202 from chrisbra/resolve_symlink
...
Try to resolve symlinks for git
2016-07-02 10:55:49 +02:00
Christian Brabandt
e715bce77b
Shorten section z in small windows
2016-07-02 10:20:19 +02:00
Christian Brabandt
409e8b0cbd
refactor shortening code
2016-07-02 10:20:07 +02:00
Christian Brabandt
5b00d54cd6
If window is too small, shorten branch name
2016-07-02 10:19:43 +02:00
Christian Brabandt
fadd737a29
Merge pull request #1201 from chrisbra/ycm
...
call YCM function only if they are defined
2016-07-01 11:54:09 +02:00
Christian Brabandt
ece61f346e
Try to resolve symlinks for git
2016-07-01 11:52:07 +02:00
Christian Brabandt
fbfea6daee
Merge pull request #1200 from chrisbra/width
...
limit whitespace check output for smaller screens
2016-07-01 11:17:16 +02:00
Christian Brabandt
bc095bcde1
limit whitespace check output for smaller screens
...
Sometimes, if a buffer triggers many whitespace check warnings,
and the Vim window size is too small, other parts of the statusline
might become unreadable.
Therefore, if the window size is smaller than say 120 characters
and the whitespace warning > 9 chars, limit it to 10 characters
and inidicate, that there is more to come
2016-07-01 11:10:51 +02:00
Christian Brabandt
5c24c3c504
call YCM function only if they are defined
...
fixes #1187 by making sure, we only call functions, that actually exist.
Should make vim-airline work with lady loaded YCM, e.g. using vim-plug:
```viml
" Code to execute when the plugin is loaded on demand
Plug 'Valloric/YouCompleteMe', { 'for': 'cpp' }
autocmd! User YouCompleteMe if !has('vim_starting') | call youcompleteme#Enable() | endif
```
2016-06-24 11:49:53 +02:00
Christian Brabandt
72b316c871
Cache eclim errorlist
...
fixes #1193
2016-06-24 11:43:20 +02:00
Daniel Hahler
8d681c7119
Tabline performance: only pass in visible buffers to formatters
...
This only passes in the list of visible buffers on that tab, which
reduces the processing a lot if you have a lot of buffers opened.
2016-06-17 15:07:55 +02:00
Daniel Hahler
f51f73773d
airline#highlighter#exec: do not build cmd always
2016-06-06 20:41:33 +02:00
Daniel Hahler
429cfcd71e
minor: do not copy args in s:get_array
2016-06-06 20:40:51 +02:00
Harm te Hennepe
74aacca55d
update ctrlspace bufferline to use clickbuf()
2016-06-02 16:00:00 +02:00
ivan tkachenko
5a170c5ef0
add obsession extension
2016-05-30 03:44:39 +08:00
Christian Brabandt
4d39cb6f20
Merge pull request #1175 from chrisbra/1174
...
vim 7.3 does not allow getwinvar with 3 args
2016-05-22 21:37:10 +02:00
Christian Brabandt
985f3d3eca
b:airline_head sometimes undefined
...
Make sure, b:airline_head variable is set, also it is initially set in
this function earlier. But see #1171 for an error.
Therefore, before checking if the variable is empty, make sure it
exists.
fixes #1171
2016-05-22 21:29:00 +02:00
Christian Brabandt
83b6dd11a8
vim 7.3 does not allow getwinvar with 3 args
...
use airline#util#getwinvar instead, fixes #1174
2016-05-22 21:26:34 +02:00
Michael Henry
e67b2847ea
Add the b:airline_whitespace_disabled feature.
...
If the per-buffer variable b:airline_whitespace_disabled is defined
and non-zero, whitespace checking will be disabled for that buffer.
2016-05-14 15:56:48 -04:00
Christian Brabandt
ba94fa12b9
Merge pull request #1165 from chrisbra/1162
...
Add quickfix title to inactive statusline
2016-05-13 20:41:51 +02:00
Christian Brabandt
bd4cb97e85
Add quickfix title to inactive statusline
...
fixes #1162
2016-05-13 10:08:54 +02:00
Christian Brabandt
0d05196426
Merge pull request #1160 from wsdjeg/master
...
Fix neovim true color support
2016-05-13 08:24:58 +02:00
Christian Brabandt
4ca34804b2
Merge pull request #1161 from chrisbra/1157
...
fix adding space padding to section caused by PR1157
2016-05-12 21:42:37 +02:00
Christian Brabandt
727208d766
Do not draw separators for empty sections
...
This is a little bit a hack, because by the time the separators are
added, it is not clear, if the following section is empty, therefore
we need to parse the content of the following section and eval the
expressions to find out, if this is empty
Remarks:
- catch all exceptions when eval'ing statusline
- make sure, that the seperators are highlighted
even when skipping empty regions (highlight group
names need to be adjusted)
- if a section is defined as empty, it will be removed completly from
the statusline. This means, it won't be called on the next update
and may not refresh properly (e.g. when the whitespace check
triggers, therefore, the whitesapce extension has to call an
explicit redraw whenever it is supposed to be refreshed)
2016-05-12 21:40:56 +02:00
Christian Brabandt
a4840f1585
fix adding space padding to section caused by PR1157
...
fixes #1158
2016-05-12 21:35:28 +02:00
wsdjeg
62dfab26de
Fix old version neovim support
2016-05-12 23:06:35 +08:00
wsdjeg
8171fcaf2e
Fix neovim true color support
2016-05-12 22:32:04 +08:00
Cenk Alti
2d7f5b2cc1
do not add padding to section name if empty
2016-05-08 04:52:35 +03:00
Christian Brabandt
cf5632bb94
Merge pull request #1152 from chrisbra/1146
...
Check that default value exists, before accessing it
2016-04-29 09:17:35 +02:00
Christian Brabandt
9bcb6ae64e
Merge pull request #1147 from hanxueluo/master
...
put file path in quotes when call "system()"
2016-04-29 09:12:42 +02:00
hanhuanle
a8dfdd40b7
shellescape file path when call "system()"
...
"system()" called by "get_git_untracked" and "get_hg_untracked" fails
sometimes. It reports error "Can't open file /tmp/***".
The root cause is that the file path for system() contains some unordinary
character and lacks quotes.
2016-04-28 23:14:32 +08:00
Christian Brabandt
9dfc4d0c04
Merge pull request #1136 from chrisbra/pr1103
...
add total line next to line number
2016-04-27 20:52:04 +02:00
oldratlee
ad3eee7e72
add total line next to line number
...
An alternative approach to PR1103
2016-04-27 20:49:49 +02:00
Christian Brabandt
057b429b02
Check that default value exists, before accessing it
...
closes #1146
2016-04-27 20:11:40 +02:00
Christian Brabandt
b8c1b26f0e
don't throw error if bufferline is not installed
...
airline#extensions#load() tries to load all extensions,
the user has specified in g:airline_extensions.
However, if e.g. bufferline is requested to be loaded, but
is not installed, it will throw an error
E117: Unknown function: airline#extensions#bufferline#init
Therefore, catch E117 and show a warning.
closes #1127
2016-04-21 09:30:23 +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
John Byrne
a5fab144aa
Made c_like_langs customisable via g:airline#extenstions#c_like_langs
2016-04-20 20:44:50 +02:00
Christian Brabandt
3f2247593a
Merge pull request #1117 from 987poiuytrewq/middle_click_buffers
...
Make middle clickable buffers (only Neovim)
2016-04-19 23:33:11 +02:00
Duncan Williams
0c251e20a7
Add middle click to close buffer functionality
...
Extended the left click to switch buffer functionality to also
support middle click to delete buffer
documentation of clickable buffers
2016-04-19 20:49:01 +01:00
Shane Smith
a79e35b5e3
Fix tabs theming
2016-04-11 18:22:42 -04:00
Adrian Cowan
066d936076
Add Java as an exception in mixed-indent-file
...
Java allows "/** */"-style comments; add it as an exception in mixed-indent-file.
2016-04-07 14:55:39 +10:00
Christian Brabandt
377010ea6e
Merge pull request #1105 from octurion/cuda-patch
...
Add CUDA as an exception in mixed-indent-file
2016-04-05 21:44:09 +02:00
Dominic Monroe
8f83231078
Add asciidoc to default wordcount filetype
2016-04-05 13:14:48 +01:00
Alexandros Tasos
dba50e9eea
Add CUDA as an exception in mixed-indent-file
2016-03-24 23:53:13 +02:00
Christian Brabandt
842e562359
Merge pull request #1092 from tamul/mixed-indent-ld
...
extensions#whitespace: fix .ld mixed indent false positive
2016-03-23 15:09:05 +01:00
Christian Brabandt
5ee24f5d87
Merge pull request #1093 from wesQ3/windowswap-update
...
windowswap: use new tab-aware API if WS is up to date
2016-03-23 15:08:32 +01:00
Christian Brabandt
9afebc9233
Merge pull request #1097 from HarmtH/tablineat-for-ctrlspace
...
tablineat() support for ctrlspace tabline
2016-03-23 15:08:07 +01:00
Christian Brabandt
79899c76bf
Merge pull request #1101 from dterei/master
...
Add spell detection
2016-03-23 15:07:31 +01:00
Joshua Rubin
73146e3e73
Add support for getting tab title from t:title
...
Uses `gettabvar` to get tab name.
2016-03-22 12:14:47 -06:00
David Terei
ae4a978509
Add spell detection
2016-03-21 23:52:04 -07:00
Harm te Hennepe
bc7aa0c812
tablineat() support with ctrlspace tabline
2016-03-19 17:38:53 +01:00
Wes Malone
582958d6c5
windowswap: use new tab-aware API if WS is current
2016-03-16 19:27:54 -05:00
Tayler Mulligan
c8048973cd
extensions#whitespace: fix .ld mixed indent false positive
...
Similar to #1065 and #1081 , adds link scripts to be excluded.
Adds a list containing C-like languages to ignore, which implement
multiline comments as:
/*
*
...
*/
Comment below filetype check reflects all exclusions (c-like)
2016-03-16 16:19:55 -07:00
Tri Nguyen
48423832d4
extensions#whitespace: fix false positive for check_mix_indent_file() for JS file
2016-03-07 22:22:07 -05:00
Christian Brabandt
e8cc5f8b84
Merge pull request #1076 from chrisbra/update_tabline
...
another approach for updating the bufferline on BufAdd
2016-03-07 19:55:10 +01:00
Christian Brabandt
1104639708
Merge pull request #1075 from chrisbra/po.vim
...
Enable po.vim integration
2016-03-02 18:48:58 +01:00
Christian Brabandt
d8d08ada7b
Make clickable buffers (only Neovim)
...
fixes #369
2016-03-02 18:47:09 +01:00
Christian Brabandt
f60a8cc7a3
another approach for updating the bufferline on BufAdd
2016-03-01 22:07:52 +01:00
Christian Brabandt
a45a96c881
Merge pull request #1063 from sappo/master
...
Various ctrlspace tabline improvements
2016-03-01 20:40:20 +01:00
Christian Brabandt
f28a706020
Enable po.vim integration
...
fixes #1070
2016-02-29 22:38:39 +01:00
Kevin Ballard
4540ea428a
Fix colorscheme to theme matching
...
Fixes #1067 for real.
2016-02-27 11:22:30 -08:00
Christian Brabandt
a7eb735f2e
Fix typo
...
fixes #1067
2016-02-26 09:20:01 +01:00
Frederic Chanal
8fde76dd63
extensions#whitespace: fix false positive for check_mix_indent_file()
...
This patch prevents check_mix_indent_file() form notifying a "mix-ident-file"
when working where C/CPP using space and comment like:
/**
* Some comment on the 1st column that shall not trigger check_indent_file()
*/
This kind of file can be found in linux kernel for example.
2016-02-26 14:29:51 +01:00
Christian Brabandt
23fb126322
Merge pull request #1057 from illicium/1055-buffer-highlight
...
Fix buffer modified highlighting being set from wrong buffer
2016-02-25 16:27:13 +01:00
Christian Brabandt
ff0f7df41f
Merge pull request #1059 from chrisbra/base16_tomorrow
...
Fix matching of themes to color names
2016-02-25 16:25:05 +01:00
Kevin Sapper
ab948735be
Problem: Cannot disable tabs for ctrlspace tabline
...
Solution: Implement the show_tabs option which is used by the default
tabline.
2016-02-25 11:35:52 +01:00
Christian Brabandt
0bfae15d97
do not unconditionally use utf-8 encoding in branch exten
...
Check, that encoding is utf8 before using '…'
fixes #1061
2016-02-25 11:30:02 +01:00
Kevin Sapper
2f2797becb
Problem: Cannot disable displaying buffers for ctrlspace tabline
...
Solution: Implement the show_buffers option which is used by the default
airline tab as well.
2016-02-25 11:19:52 +01:00
Kevin Sapper
ad5194244b
Problem: Cannot switch position of tabs and buffers for ctrlspace
...
tabline
Solution: Add a new option which inverses the position of buffer and
tabs
If switch_buffer_and_tabs is 0 (default) buffer are on the left and tabs
on the right else if is 1 the order is reversed.
2016-02-25 11:03:50 +01:00
Christian Brabandt
78e1a2c8db
Fix matching of themes to color names
...
theme usually use '_' instead of '-', so replace that first before
trying to match.
Second, make the patterns easier to match.
Third, make sure, match for Tomorrow happens with matching case
fixes #1056
2016-02-25 08:07:51 +01:00
Daniel Hahler
595d270398
parts#readonly: fix filereadable check with #1054
2016-02-25 02:57:49 +01:00
Yegor Pomortsev
7453b5e15c
Fix buffer modified highlighting being set from wrong buffer
...
Fixes #1055 , cased by refactoring in e4ef624
(#952 )
2016-02-24 16:45:17 -08:00
Daniel Hahler
0485b48dbb
Display [noperm] with modifiable, but not readable buffers
...
Based on: https://github.com/vim-airline/vim-airline/issues/633#issuecomment-174504456
Fixes: https://github.com/vim-airline/vim-airline/issues/633 .
2016-02-24 22:03:15 +01:00
Christian Brabandt
0e70dac030
Disable tabline refresh per configuration
...
fixes #1049 and should prevent that users see AirlineTabRefresh printed
on their screen.
2016-02-23 20:23:29 +01:00
rosston
63f9abd3f2
Fix highlighting of current/modified buffer.
...
Fixes broken variable reference caused by e4ef624
(#952 ).
2016-02-22 23:07:27 -05:00
Kevin Sapper
e7edb4c75a
Problem: Cannot rename the labels for buffers and tabs
...
Solution: Add an option for the user to configure those labels and make
the current values the default ones.
2016-02-22 08:30:20 +01:00
Bailey Ling
e6ab7bdf6d
show tabs on the left when in tabs mode, splits on the right ( #1043 )
2016-02-21 15:03:55 -05:00
Bailey Ling
8c080fdf80
Merge pull request #952 from chrisbra/buffer_line
...
Always display buffer list in tabline
2016-02-20 20:10:12 -05:00
Christian Brabandt
d0652caf69
Merge pull request #1041 from chrisbra/bubblegum
...
Match bubblegum theme to colorscheme
2016-02-19 12:57:20 +01:00
Christian Brabandt
20d3aae20f
Match bubblegum theme to colorscheme
2016-02-19 12:55:33 +01:00
Christian Brabandt
8af213d3f9
Merge pull request #816 from mildred/master
...
Make tabline compatible with bufmru
2016-02-17 07:42:42 +01:00
Christian Brabandt
8c7515aade
Merge pull request #1038 from chrisbra/better_warning_highlight
...
Revert term highlighting of airline_warning to orange
2016-02-16 23:36:50 +01:00
Christian Brabandt
7cfcc4871a
Revert term highlighting of airline_warning to orange
...
Highlighting was changed with commit 06f2cb5a89
Revert it to the old colors.
2016-02-16 23:32:38 +01:00
Shanti Bouchez-Mongardé
faa7a18242
Make tabline compatible with bufmru
2016-02-16 21:16:55 +01:00
Christian Brabandt
13ea57b98a
Revert "Add mq patch to branch output"
...
This reverts commit 8023f6f5dc
.
fixes #1035
2016-02-16 17:52:26 +01:00
Christian Brabandt
5e0b10c005
Revert "Only show hg qtop output, if branch is also shown"
...
This reverts commit da78d4a7bb
,
since it causes a massive performance impact.
fixes #1035
2016-02-16 17:48:57 +01: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
a2f54ef6e6
add feedback from PR
2016-02-15 20:01:34 +01:00
Christian Brabandt
da78d4a7bb
Only show hg qtop output, if branch is also shown
2016-02-15 17:05:53 +01:00
Christian Brabandt
8023f6f5dc
Add mq patch to branch output
2016-02-11 22:44:12 +01:00
Christian Brabandt
2c5aa75d5f
update according to PR comments
2016-02-11 21:31:42 +01:00
Bailey Ling
e4ef624ea8
tabline for combined buffers/tabs
...
This is a new tabline extension, that displays both the buffers open and
the available tabs. This has been requested by #639 and fixes #639 .
This is based on blings work on branch spike.
This uses the new highlight groups tab*_right, so that the separators
have the correct color. Also this makes some configuration variable
obsolete and therefore, they have been removed.
remove unused combined config variable, remove space after tab
2016-02-10 20:22:35 +01:00
Christian Brabandt
1d072bf019
Do not check for mixed whitespace in Makefiles
...
Skip indent and mixed-indent-file check for Makefiles.
fixes #1017
2016-02-09 20:16:12 +01:00
Christian Brabandt
31906ac7b2
Some improvements for the buflist implementation
...
This should make the buflist algorithm faster.
Also there is an alternative implementation in branch 535 available,
which avoids looping over the complete range, I'll stay with the current
approach, as it does not depend on BufAdd/BufDelete autocommands.
details:
instead of testing for buflisted() and bufexists() we only test for
buflisted() because, this also tests for the existence of the buffer.
Also instead of a second loop of the exclude patterns, we'll join all
of them together with '\|' and check if they match the current buffer.
The rest of the conditions have been joined into a single condition.
This together made up an improvement of
Orig:
FUNCTION airline#extensions#tabline#buflist#list()
Called 94 times
Total time: 0.267305
Self time: 0.267305
New:
FUNCTION airline#extensions#tabline#buflist#list()
Called 85 times
Total time: 0.124572
Self time: 0.124572
2016-02-09 19:41:17 +01:00
Werner Freund
447cf71ef2
Added visual mode word counting
2016-02-09 19:31:55 +01:00
Christian Brabandt
08a8779268
do not echo feedkeys() arguments
...
Try a different approach, that does not echo
the commandline. For that, create a <silent> mapping,
that is called via feedkeys() and as such should update the tabline.
fixes #1011
2016-02-08 21:16:38 +01:00
Christian Brabandt
b48b166a22
Merge pull request #911 from sappo/master
...
Problem: CtrlSpace 5.0 integration (statusline + tabline)
2016-02-08 10:44:01 +01:00
Christian Brabandt
9e6a917c52
Merge pull request #1005 from chrisbra/mixed_indent
...
Detect inconsistent mixed indentation in a file
2016-02-08 10:27:37 +01:00
Christian Brabandt
1043f9c0ce
Merge pull request #1003 from chrisbra/less_redraws
...
Try to avoid excessive redraws.
2016-02-08 10:27:26 +01:00
Christian Brabandt
faaf58b2c5
Merge pull request #996 from chrisbra/untracked_improvement
...
Small improvement for untracked feature
2016-02-08 10:27:13 +01:00
Kevin Sapper
a65000211f
Problem: Load check variables has changed
...
Solution: Use the current one from ctrlspace 5.0 + minor style fixes
Problem: CtrlSpace 5.0 does no longer work with airline
Solution: Modify the ctrlspace extension to call the new APIs
The statusline work fine but the custom ctrlspace function
somehow/somewhere gets overridden and I could not figure out where.
Therefore the user must add
let g:CtrlSpaceStatuslineFunction = "airline#extensions#ctrlspace#statusline()"
to its .vimrc.
Problem: Ctrlspace 5.0 does not integrate well into tabline
Solution: Write a tabline extensions for ctrlspace 5.0.
The extensions is capable of showing both tabs and buffers, but only the
buffers of a current tab are shown.
2016-02-08 08:36:25 +01:00
Christian Brabandt
7efa5067ef
fix performance regression
2016-02-07 22:17:17 +01:00
Christian Brabandt
ac86003ac3
Problem with highlighting groups per tabpages
...
The current mode is only cached per window. This will break, if one
switches tabpage. We remember the last mode that was used to create the
highlighting group and compare, if this has changed.
This fixes #670
2016-02-07 09:07:00 +01:00
Christian Brabandt
7352c8ee9e
Detect inconsistent mixed indentation in a file
...
This is an extension to the whitespace extension.
It can now detect, if there is mixed indentation used within a file,
e.g. (using space for indentation on some lines and using tabs on other
lines.
This fixes #560
2016-02-06 17:46:56 +01:00
Christian Brabandt
62c383cefc
Add support for unicode plugin
...
This commit adds support for the :UnicodeTable of https://github.com/chrisbra/unicode.vim
2016-02-06 16:05:29 +01:00
Christian Brabandt
af3f209d7a
Try to avoid excessive redraws.
...
Most of them seem to be caused by using :hi statements, although the
highlighting group to be created is exactly the same. Therefore, get the
info from actual definition and only execute :hi when the new group is
actually different.
Also try to avoid to generate :hi statements when the popupmen is
visible. This causes flickers.
2016-02-06 13:55:28 +01:00
Christian Brabandt
73f365cfb9
use feedkeys() with "n" flag
2016-02-06 08:49:50 +01:00
Christian Brabandt
050945f087
update_tabline() may cause E315
...
This is probably a bug in Vim because redrawing might cause
Vim to actually try to access a line of the buffer, that hasn't
been loaded yet.
Therefore try to update the tabline, by performing a two :set mod!
calls.
2016-02-06 00:03:27 +01:00
Christian Brabandt
0022de3b78
Small improvement for untracked feature
...
first argument of git status is <pathspec> in git speech,
and so if you feed it a directory, that contained an untracked file,
the directory would be marked as untracked. So fix this.
2016-02-05 23:11:37 +01:00
Christian Brabandt
87d60febaf
fix neovim color mode
2016-02-05 22:47:57 +01:00
Christian Brabandt
fdb74f549d
Make the BOM indicator '[BOM]'
...
also, not-exists symbol has nothing to do with powerline fonts, so fix
that.
2016-02-05 18:19:53 +01:00
Christian Brabandt
42b59a05bf
Add bomb indicator to the encoding section.
2016-02-05 11:36:47 +01:00
Andrea Schiavini
ef3746d022
Neovim support
2016-02-05 09:19:31 +01:00
Christian Brabandt
3f927b587d
Revert "remove wrong backslash"
...
This reverts commit da3f3bf1d7
.
2016-02-04 19:03:25 +01:00
Christian Brabandt
d8adbfa135
Add untracked feature to branch extension.
...
This will show a little not-existing sign in a buffer,
if that file lives in a git/hg repository but does not exists
there yet. Use `:let g:airline_symbols.notexists='!'` to configure
the '!' as symbol. By default, will use U+2204 symbol
To not impact performance by shelling out a lot, the result is cached
until the buffer is written or a shell command is issued.
Should work with mercurial and git.
fixes #925
2016-02-04 16:43:42 +01:00
Christian Brabandt
f57c5daf66
Fix highlighting problems with Vim
...
1) Make sure airline_error and airline_warning highlighting are
different, so that the correct separator will be drawn. This
fixes #982 .
2) allow to deactivate %(%) to workaround a vim bug, that may cause
leaking of colors from one section to the next and adding additional
spaces. This needs to be fixed upstream:
https://groups.google.com/d/msg/vim_dev/sb1jmVirXPU/mPhvDnZ-CwAJ
Possibly, also related to neovim/neovim#4147
Use `:let airline#extensions#default#section_use_groupitems = 0`
to disable grouping of statusline items
2016-02-04 16:29:45 +01:00
Christian Brabandt
da3f3bf1d7
remove wrong backslash
2016-02-04 16:25:27 +01:00
namark
d6a42528a1
Made fugitive and lawrencium coexist in peace,
...
meaning that branches retrieved from those are now displayed side by
side. The order can be customised with g:airline#extensions#branch#vcs_priority.
The VCS name is now prepended to the branch name to be able to tell
which is which. The VSCCommand behaviour is unchanged.
Also restructured the code a little bit, and made found_fugitive_head
variable behave as its name suggests.
2016-02-01 22:51:34 +01:00
Bailey Ling
ffe0fafa2d
fix load regression errors with recent theme changes
2016-01-31 01:41:13 -05:00
Christian Brabandt
9c2c0816f5
some more smaller updates
2016-01-30 16:50:37 +01:00
Evgeny Firsov
44045bc280
Disable YCM extension by default
...
Move syntastic and eclim to the error section
2016-01-30 14:18:20 +01:00
Christian Brabandt
450e2535af
Merge pull request #960 from chrisbra/airline_error
...
Airline error improvements.
2016-01-30 14:09:24 +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
Christian Brabandt
e5c4306698
Do not add empty error section
...
This prevents, adding a separator in error highlighting, also there
exists no error.
2016-01-28 21:27:07 +01:00
Christian Brabandt
90af4618f5
only init ycm extension, when YCM is available
2016-01-28 17:39:15 +01:00
Bailey Ling
b7a74b1748
remove deprecated variables
...
over 2 years is more than enough warning...
2016-01-28 09:54:14 -05:00
Christian Brabandt
3cc0bfc390
fix issue #955
2016-01-28 11:15:25 +01:00
Christian Brabandt
d7f4fbf529
Merge pull request #902 from efirs/ef_ycm_error_warning_count
...
Show YouCompleteMe error and warning count in the statusline
2016-01-28 10:11:37 +01:00
Evgeny Firsov
6d81660fd8
Show YouCompleteMe error and warning count in the statusline
...
Signed-off-by: Evgeny Firsov <firs1978@gmail.com>
2016-01-27 23:21:16 -08:00
Bailey Ling
3cd278ad08
add deprecation warning regarding themes #923 .
2016-01-27 22:46:57 -05:00
Bailey Ling
69587e1aa0
Merge pull request #839 from yeskeen/master
...
add cool theme
2016-01-27 22:17:59 -05:00
Bailey Ling
87e2e578b5
Merge pull request #865 from dlanileonardo/master
...
Base16 Theme for Terminal with 16 colors
2016-01-27 22:17:35 -05:00
Bailey Ling
2cf0ac1230
Merge pull request #937 from chrisbra/xtermlight
...
add xtermlight theme
2016-01-27 22:17:21 -05:00
Christian Brabandt
da21b97529
fix stupid typo
2016-01-27 21:22:39 +01:00
Christian Brabandt
82d1cab392
Merge pull request #950 from chrisbra/msdos_colors
...
Better algorightm, to get msdos colors
2016-01-27 20:46:03 +01:00
Christian Brabandt
b094374f37
Merge pull request #944 from chrisbra/wordcount_formatter
...
Some improvements to the wordcount plugin
2016-01-27 20:41:21 +01:00
Christian Brabandt
1be1ed8810
Merge pull request #947 from chrisbra/custom_trailing_space
...
Allow to customize the trailing whitespace regexp
2016-01-27 20:40:47 +01:00
Christian Brabandt
768a475add
Better algorightm, to get msdos colors
...
currently, full 255 colors were returned, while in fact
msdos console only supports 16 colors. So fix this.
2016-01-27 20:37:58 +01:00
Christian Brabandt
1490f59e75
Merge pull request #949 from chrisbra/cmd_highlighter
...
cmd.exe: Check for NONE/fg/bg of color value
2016-01-27 19:13:51 +01:00
Christian Brabandt
5181d49a63
cmd.exe: Check for NONE/fg/bg of color value
...
Color values can have NONE/fg/bg values as well, and this would
error out.
2016-01-27 19:12:54 +01:00
Enrico Ghirardi
04f4b0f778
base16-theme: Revert changes for active statusline
2016-01-27 17:13:57 +01:00
Christian Brabandt
453f4b759f
Allow to customize the trailing whitespace regexp
...
Currently, vim-airline uses hard-coded '\s$' to check for trailing
whitespace. However you might want to check for different values.
Therefore, set the variable
g:airline#extensions#whitespace#trailing_regexp to the required regexp
value.
closes #663
2016-01-27 14:18:28 +01:00
Christian Brabandt
020ee382dc
Merge pull request #945 from chrisbra/bufadd_ignore
...
fix issue #939
2016-01-26 20:58:10 +01:00
Christian Brabandt
889492e01c
fix issue #939
2016-01-26 07:52:42 +01:00
Christian Brabandt
97e204f3b6
Some improvements to the wordcount plugin
...
1) allow for custom formatting of the output of the wordcount formatter
This allows for formatting numbers correctly e.g. 1,042 in English
locale and 1.042 in German locale.
2) cache values, so that no on every cursor move the wordcount needs to
be recalculated.
2016-01-25 21:00:05 +01:00
Christian Brabandt
349ca86c71
Correct the comparison for given color codes
...
this issue fixes #758
The problem was, that a given color list ['','',0,'',''] was given to
the airline#highlighter#exec() function. This resulted in the following
comparison:
if (get(colors,2,'') != '') ? 'ctermfg='.colors[2] : ''
which, since echo 0 != '' returns falls will return a single:
:hi group
and no color codes given and therefore, Vim would output the
current highlighting group.
Use isnot# as comparison to fix this issue.
2016-01-25 12:21:34 +01:00
Christian Brabandt
e42c0b0f33
NrrwRgn: Only use Utf-8 Glyph in utf8 encoding
...
Fixes #567
2016-01-23 21:31:34 +01:00
Bailey Ling
8fb92586ee
Merge pull request #938 from chrisbra/undefined_bold
...
Before using hlgroups make sure they exist
2016-01-23 13:50:38 -05:00
Bailey Ling
698db37591
Merge pull request #932 from chrisbra/updated-doc
...
clarify buffer_idx mode mappings
2016-01-23 13:47:17 -05:00
Christian Brabandt
b1c00b6cc9
define linenr with bold accent
2016-01-23 12:49:13 +01:00
Christian Brabandt
5923ced2b0
clarify buffer_idx mode mappings
...
Also add mappings for tabmode as suggested.
2016-01-22 20:20:18 +01:00
Bailey Ling
fb255b570d
Merge pull request #935 from chrisbra/bufadd_autocmd
...
update tabline on bufadd events
2016-01-22 09:14:14 -05:00
Christian Brabandt
b6d65b41a0
add xtermlight theme
...
fixes #770
2016-01-22 11:17:20 +01:00
Christian Brabandt
8ae46e989d
update tabline on bufadd events
2016-01-21 21:10:25 +01:00
Christian Brabandt
0e6a0b9389
Merge pull request #893 from blueyed/theme-base16-vertsplit
...
base16 theme: use Normal/VertSplit for inactive statusline
2016-01-20 23:31:36 +01:00
Christian Brabandt
2ebe79a0d0
fix issue with virtualenv
2016-01-20 23:21:20 +01:00
Daniel Hahler
c10a072b9e
base16 theme: use Normal/VertSplit for inactive statusline
2016-01-20 22:50:19 +01:00
Bailey Ling
17eff4f4b0
Merge pull request #931 from chrisbra/tabline-mappings
...
use silent flag for AirlineSelectTab mappings
2016-01-20 15:25:48 -05:00
Christian Brabandt
6c1fb7e275
use silent flag for AirlineSelectTab mappings
2016-01-20 20:07:45 +01:00
Christian Brabandt
7ace10651f
Make the virtualenv extension work better
...
This fixes #511
It allows the virtualenv plugin to call back and tell the airline plugin
to update the statusline. Therefore, the new function
airline#extensions#virtualenv#update() is provided. However, to properly
fix this issue, the virtualenv plugin needs to call this function.
Second, depending on $VIRTUAL_ENV is not safe, since the virtualenv
plugin might define it itsself when calling :VirtualEnvActivate
Therefore skip this test and just test for existance of he
:VirtualEnvList command.
2016-01-20 20:02:21 +01:00
Christian Brabandt
db6bf458fb
Check window size
...
Before setting showtabline option, make sure, there is enough room
fixes #863
2016-01-17 18:35:24 +01:00
Christian Brabandt
8845f56686
Merge pull request #921 from chrisbra/doc-wordcount
...
use wordcount function if available
2016-01-16 12:56:51 +01:00
Marco Hinz
d85d697b5f
Hunks: make s:source_func local to buffer
...
Prior to this change airline set the function for getting hunks only once,
which works as long as you don't use simlar plugins for different VCS at the
same time.
If that was the case, only one plugin would have won, depending on the first
buffer handled by these plugins. And although the code for the other plugin
was run every time, you would never see the actual line changes, since airline
didn't even bother checking.
Now these plugins can be used side-by-side in the same Vim instance, e.g.
gitgutter for, well, git and signify for the rest.
2016-01-15 13:05:01 +01:00
Christian Brabandt
17f5eaaa6a
use wordcount function if available
2016-01-15 12:55:23 +01:00
Bailey Ling
048b24a916
happy 2016!
2016-01-14 21:38:38 -05:00
Christian Brabandt
f6fc6419be
adjust default value for wordcount extension
...
document default value for wordcount extension
add text file for wordcount extension
2016-01-14 21:43:45 +01:00
Christian Brabandt
c1fbea46bc
autochdir option is only available in big builds
2016-01-05 11:15:20 +01:00
Zandr Martin
daafeed223
fixed black fg in distinguished theme
2015-12-28 14:47:16 -06:00
Bailey Ling
39810a33dd
Merge pull request #904 from zandrmartin/master
...
add distinguished theme
2015-12-28 15:10:41 -05:00
Bailey Ling
2fbdbc8893
Merge pull request #888 from ohcibi/feature/add-pathshorten-as-long-branch-name-option
...
Add `pathshorten` as a built-in format for long branch names
2015-12-28 14:56:02 -05:00
Bailey Ling
4791dcac02
Merge pull request #884 from yousong/dconf
...
init.vim: use %F in section_c if autochdir is set.
2015-12-28 14:51:20 -05:00
Zandr Martin
4733a92e20
add distinguished theme
2015-12-28 11:39:29 -06:00
Tobias Witt
b48e2390cb
Add pathshorten
as a built-in format for long branch names
2015-11-19 11:03:54 +01:00
Yousong Zhou
18a19532ea
init.vim: use %F in section_c if autochdir is set.
...
The difference as per documentation of :statusline
f S Path to the file in the buffer, as typed or relative to current
directory.
F S Full path to the file in the buffer.
2015-11-11 12:03:28 +08:00
somini
e0841b10a7
Don't update the word count on select mode
...
Fixes #868
2015-11-10 20:20:53 +00:00
somini
1c498d1af3
Add format to the wordcount plugin
2015-11-10 20:11:20 +00:00
Dlani Mendes
6a14987276
Base16 True Pallete
2015-10-19 14:44:10 -02:00
Jacob Niehus
a8d40a1bc3
Change normal command to normal! command
2015-10-16 15:22:53 -07:00
Bailey Ling
8c30610c5f
allow wordcount filetypes to be customized. resolves #864 .
2015-10-07 20:44:34 -04:00
Bailey Ling
2637e3ee58
fix error from expanding snippets. resolves #862
2015-10-06 14:44:19 -04:00
Bailey Ling
a253b68812
length guard before extracting the word count ( #861 )
2015-10-06 11:26:36 -04:00
Bailey Ling
e1ffd1cc30
Merge pull request #854 from kazuoteramoto/master
...
Add check for long lines to extensions#whitespace
2015-10-05 10:49:02 -04:00
Kazuo Teramoto
5c799511c9
Add check for long lines to extensions#whitespace
...
Check for lines > textwidth, disabled by default.
2015-10-05 11:40:55 -03:00
Bailey Ling
e59c3ecd6e
add wordcount extension
...
resolves #761
2015-10-05 10:18:14 -04:00
Bailey Ling
543438e482
Merge pull request #844 from actionless/add-term-theme
...
add 'term' colorschheme
2015-10-05 09:04:42 -04:00
Bailey Ling
b7a2159128
Merge pull request #815 from chrisbra/disabled
...
fix disabled bug
2015-10-05 08:51:56 -04:00
Bailey Ling
4b4c70308a
Merge pull request #838 from RsrchBoy/topic/capslock
...
Fix vim-capslock functionality after changes in CapsLockStatusline()
2015-10-05 08:38:49 -04:00
Bailey Ling
2659eafa3a
Merge pull request #856 from poppyschmo/bufsweep
...
Sweep tabline of unlisted buffers on BufLeave
2015-10-05 08:30:53 -04:00
poppyschmo
a58b3cba55
Sweep tabline of unlisted buffers on each BufLeave
2015-09-25 14:11:07 -07:00
actionless
2efa4c0815
add 'term' colorschheme
2015-08-27 19:06:15 +02:00
no-name
3db2b66587
add cool theme
2015-08-20 12:14:50 +08:00
Chris Weyl
022c769494
Fix vim-capslock functionality after changes in CapsLockStatusline()
...
CapsLockStatusline() used to return '[caps]' when soft-capslock was
on... and now returns '[Caps]'. As we're just using this to test for
the lock, we lower-case the return value in order to "normalize" the
value across versions.
The change in behaviour can be seen at:
tpope/vim-capslock@3a0f051373
2015-08-19 15:51:09 -07:00
oblique
4bfb57f40d
behelit theme: Add color for insert_paste warning
2015-08-11 19:40:04 +03:00
Christian Brabandt
c761566dcf
fix disabled bug
2015-07-10 21:12:30 +02:00
Bailey Ling
cdc6d98a09
Merge pull request #788 from toupeira/patch-1
...
Remove trailing slashes in unique_tail formatter
2015-07-08 22:28:28 -04:00
Bailey Ling
3942ce6790
Merge pull request #797 from cHoco/master
...
Tabline: add exclude_preview option to hide preview buffer
2015-07-08 22:22:39 -04:00
Enrico Ghirardi
317e5fa47a
Tabline: add exclude_preview option to hide preview buffer
2015-06-28 22:34:37 +02:00
oblique
373b83ee58
Add behelit theme
2015-06-25 13:36:18 +03:00
Bailey Ling
b29e01fa22
nr2char only takes 1 parameter in 7.3
...
addresses regression with #791
2015-06-09 22:08:49 -04:00
Bailey Ling
22b43c909a
Merge pull request #791 from 0x0dea/simpler_crypt
...
Simplify crypt indicator generation
2015-06-09 17:01:12 -04:00
Bailey Ling
a5a88ce662
Merge pull request #784 from NLKNguyen/papercolor_theme
...
Add papercolor theme
2015-06-09 16:04:26 -04:00
Hendrik Purmann
a0110e13bd
Add checks for existing key to make #786 work in neovim
2015-06-09 18:19:16 +02:00
D.E. Akers
9837c1e7c8
Simplify crypt indicator generation
...
nr2char() is a much simpler way to obtain UTF-8 codepoints beyond 0xFFFF.
2015-06-09 10:04:10 -04:00
Markus Koller
312f847e73
Remove trailing slashes when getting path tail
2015-06-04 18:14:06 +03:00
Christian Brabandt
9d90e2cbfe
Add crypt indicator
...
If editing an encrypted file, add an indicator, that the file is
encrypted
2015-06-02 20:40:19 +02:00
Nguyen Nguyen
7acfcc9aed
Add papercolor theme
2015-05-29 23:17:34 -07:00
James Clarke
0b5ef59cf5
Added support for Neovim's terminal buffer mode
2015-05-25 17:10:27 +01:00
Bailey Ling
491b3335cd
Merge pull request #763 from h3xx/master
...
Fix grammatical error in comment
2015-05-19 21:11:48 -04:00
Bailey Ling
1e46a46bb3
Merge pull request #754 from blueyed/hunks-support-quickfixsigns
...
Support for quickfixsigns in hunks extension
2015-05-19 21:09:42 -04:00
Daniel Hahler
f22fbfd41d
hunks: add support for quickfixsigns
...
Closes: https://github.com/bling/vim-airline/pull/754
2015-05-03 19:50:11 +02:00
Dan Church
bb2d6d8436
Fix grammatical error in comment
2015-04-28 12:25:26 -05:00
Emil Renner Berthing
e6ca2ac58d
whitespace: add more lenient mixed whitespace algorithm
2015-04-14 19:01:08 +02:00
Bailey Ling
f45ecdac15
Merge pull request #736 from lawm/truncate
...
tabline: add fnametruncate option to truncate long tab/buffer names
2015-03-24 21:45:28 -04:00
Lawrence M
252978e4ac
tabline: add fnametruncate option to truncate long tab/buffer names
2015-03-20 16:37:36 -07:00
Jordan W
8d93bc7fd4
Add warnings color for base16 color schemes
...
This replaces the color-clashing orange default with something more reasonable.
2015-03-20 12:25:07 -07:00
Bailey Ling
5dc0cc5418
allow displayed_head_limit to work alongside format. resolves #729 .
2015-03-14 12:26:35 -04:00
Bailey Ling
5e1cc0a28b
Merge pull request #728 from w0ng/upstream
...
Add new theme: hybridline.vim
2015-03-11 23:08:13 -04:00
Andrew Wong
57767cc320
Add new theme: hybridline.vim
...
update hybridline comment
2015-03-10 02:17:13 +11:00
Eduardo Antunes C. de Sousa
7ea4b510af
Dectect when vim.exe is running on ConEmu with 256 colors configured, so
...
it will use full color scheme.
More information on http://stackoverflow.com/questions/14315519/conemu-vim-syntax-highlight
2015-03-06 11:42:04 -03:00
Bailey Ling
96a94d8c3a
add option to display both tab number and splits. resolves #440 .
2015-03-01 09:56:36 -05:00
Bailey Ling
3635b78448
Merge pull request #722 from lynnard/master
...
tabline -- added AirlineSelect{NextTab,PrevTab} commands with countable support
2015-03-01 09:34:12 -05:00
Lingnan Dai
661c5fb0c5
tabline -- added AirlineSelect{NextTab,PrevTab} commands with countable support
2015-03-01 00:18:02 +00:00
Bailey Ling
50e47ced42
add g:airline_extensions variable for manual loading
2015-02-28 17:40:23 -05:00
Bailey Ling
ca44fd467c
support display only tail end of a branch; as well as custom format
...
functions. resolves #710 .
2015-02-27 22:04:13 -05:00
Bailey Ling
f0492b5aea
add basic integration for vim-ctrlspace
2015-02-27 21:44:43 -05:00
Bailey Ling
8aad42644c
integration with taboo.vim; resolves #476 and #575 .
2015-02-27 21:12:45 -05:00
Bailey Ling
36bc297e60
fix statusline out of sync right after colorscheme change
2015-02-27 09:09:26 -05:00
Bailey Ling
b6e29a8cfb
fix durant theme. resolves #704 .
2015-02-27 07:35:31 -05:00
Bailey Ling
c78767a564
fix buffer mismatch in certain cases. resolves #715 .
2015-02-26 23:08:59 -05:00
Bailey Ling
e2a120869b
fix load error for buffer_idx_mode. resolves #711
2015-02-20 19:37:55 -05:00
Bailey Ling
618851188a
hide tab type as per documented variable. resolves #667 .
2015-02-19 21:33:05 -05:00
Walter Leibbrandt
83000d9a30
badwolf theme: make inactive status line stand out more - in console vim too.
2015-02-20 02:10:54 +02:00
Walter Leibbrandt
791de5a34d
badwolf theme: make inactive status line stand out more
2015-02-19 16:00:25 +02:00
Bailey Ling
63e309130a
account for possibility of uninitialized variable
2015-02-19 07:09:24 -05:00
Bailey Ling
7394642293
extract buffers view mode into its own file
2015-02-18 21:56:16 -05:00
Bailey Ling
987306dcaf
extract tabs view mode to its own file
2015-02-18 21:56:15 -05:00
Bailey Ling
6f9d92df7c
extract autoshow logic to its own file
2015-02-18 21:56:15 -05:00
Bailey Ling
8693a525b9
extract buffer listing to its own file
2015-02-18 21:56:15 -05:00
Bailey Ling
3add7b265a
Merge pull request #705 from ClaudiaJ/master
...
Add support for 24-bit colors with +termtruecolor flag
2015-02-18 21:55:09 -05:00
Bailey Ling
065b141033
Merge pull request #703 from kmARC11/master
...
Base16 color fixes to resemble gui
2015-02-18 21:53:28 -05:00
Claudia Hardman
ac58bc9954
Add support for 24-bit colors with +termtruecolor flag
2015-02-16 12:00:52 -05:00
Bailey Ling
ca925efdbf
move formatters into their own namespace
2015-02-13 21:50:18 -05:00
Bailey Ling
1ca6ffb6d0
happy 2015
...
resolves #692 .
2015-02-13 21:47:43 -05:00
Mark Korondi
f9b5611ac8
Unnecessary newline removed
2015-02-14 00:43:01 +01:00
Mark Korondi
f820a7eb95
Base16 color fixes to resemble gui
2015-02-14 00:37:17 +01:00
Daniel Hahler
98c2dbd04e
tabline: fix cache invalidation for show_buffers=1 with :bd
...
Ref: https://github.com/bling/vim-airline/pull/700#issuecomment-73798679
2015-02-11 02:48:25 +01:00
Daniel Hahler
3c1295bb71
tabline: fix s:current_buffer_list invalidation
...
Use `s:current_buffer_list` always in `s:get_buffer_list()`, and
invalidate it via BufAdd and BufUnload.
Fixes regression from ce58af7191 (commitcomment-9647487)
.
2015-02-09 17:44:13 +01:00
Daniel Hahler
ce58af7191
Fix get_buffer_list being called always via get()
...
Vim's `get()` calls the expression for `{default}` always, not only if
the default is going to be used!
This caused `airline#extensions#tabline#get_buffer_name` to not use the
cached value.
Fixes https://github.com/bling/vim-airline/issues/697 .
2015-02-07 15:38:02 +01:00
Bailey Ling
446397e006
Merge pull request #688 from changyuheng/pr-column-number
...
Replace column number with virtual column number
2015-01-31 13:21:26 -05:00
Bailey Ling
462ee313e7
use util getwinvar helper function
2015-01-31 12:38:46 -05:00
Christian Brabandt
3acea37fdc
selectively disable airline for selected windows
...
(make it work with Vim 7.3)
2015-01-23 22:45:44 +01:00
Chang Yu-heng
6d7996ff1b
Replace column number with virtual column number
2015-01-19 00:04:26 +08:00
Bailey Ling
13ee9f456a
address syntax errors
...
resolves #683
2015-01-03 19:38:17 -05:00
PsychoMario
527e6661e6
added tabline#show_tabs to disable tab bar
2014-12-26 21:48:06 +00:00
Lingnan Dai
dd587883eb
fixed bug with excludes for buffers
2014-12-18 12:46:35 +00:00
Bailey Ling
401ce611c6
Merge pull request #651 from chenaren/byfname
...
Show the byfname toggle in status line of CtrlP
2014-12-09 22:25:41 -05:00
Bailey Ling
317fcfd295
Merge pull request #666 from blueyed/no-ft-override-for-diff
...
Remove 'diff' from s:filetype_overrides
2014-12-09 22:22:34 -05:00
Daniel Hahler
9650024142
Remove 'diff' from s:filetype_overrides
...
I would like to see the normal statusline (i.e. file name) with
diff/patch files, too.
2014-12-02 16:11:16 +01:00
Bailey Ling
4a2208821e
Merge pull request #656 from michamos/patch-1
...
Improve Quickfix window detection
2014-11-26 09:17:42 -05:00
Bailey Ling
a323b5ba3d
Merge pull request #657 from michamos/master
...
Add vim-plug override
2014-11-25 21:11:42 -05:00
Bailey Ling
6b4f03efbc
fix seperator drawing when tabs are shown. fixes #653 .
2014-11-25 21:04:18 -05:00
Micha Moskovic
96afdbc877
Add vim-plug override
2014-11-25 16:49:43 +01:00
Micha Moskovic
4c22406e28
Improve Quickfix window detection
...
When using a non-english locale, the name of the Quickfix window can change, making the detection of Quickfix vs Location list fail.
E.g., my locale is set to italian and the Quickfix window's name is `[Lista Quickfix]` rather than `[Quickfix List]`.
This change generalizes the pattern used to detect the Quickfix window.
2014-11-25 16:32:46 +01:00
Bailey Ling
15666d71e3
Merge pull request #652 from chenaren/venv_fallback
...
Add simple virtualenv fallback when vim-virtualenv is not presented
2014-11-22 10:59:01 -05:00
Kevin Chen
4878fab120
Add a virtualenv fallback when vim-virtualenv is not presented
2014-11-21 23:39:39 +08:00
Kevin Chen
b4c8d43e85
Add CtrlP style to the Bubblegum theme
2014-11-20 21:27:26 +08:00
Kevin Chen
038c000f91
Show the byfname toggle in status line
2014-11-20 21:23:25 +08:00
Bailey Ling
411ae84890
Merge pull request #643 from maek/master
...
Improve tabline + buffer_min_count behaviour
2014-11-15 16:31:53 -05:00
Bailey Ling
d003b2450a
Merge pull request #547 from kdurant/master
...
Create durant.vim
2014-11-15 14:52:50 -05:00
Bailey Ling
09817e0984
fix regression with serene theme, #599
2014-11-15 19:49:02 +00:00
maek
f8645fb654
Improve tabline + buffer_min_count behaviour
...
Use BufEnter and BufUnload in place of CursorMoved.
Fixes #479
2014-11-10 15:30:44 +01:00
Bailey Ling
be6e4d6dd6
check background of groups to determine transition. resolves #599 .
2014-11-09 00:52:42 -05:00
Bailey Ling
727192ad6a
refactor builder and reduce state across multiple calls
2014-11-04 14:49:02 -05:00
Bailey Ling
256dec6800
detect changes to tabline config variables after init. resolves #636
2014-11-04 14:48:00 -05:00
Bailey Ling
246c217562
Merge pull request #631 from rkannan82/master
...
Display warnings only when there are no errors messages.
2014-10-27 21:58:13 -04:00
Bailey Ling
3e0b5474b1
Merge pull request #628 from freeo/master
...
Theme kalisi: Added 256 term colors and several changes
2014-10-27 21:11:11 -04:00
Kannan Rajah
328016ce85
Exclude INFO from error/warning count.
...
Eclim uses signs for code reference searches and they shows up as INFO
signs. These are not errors/warnings and hence should not be included in
count.
Testing:
Verified the right count shows up.
2014-10-26 10:14:13 -07:00
Asa Jay
82a4ebb56c
Theme kalisi: Added 256 term colors, several changes
...
Changed insert mode color 3
Changed tabline modified
Changed inactive modfied statusline
Refined visual and replace mode colors
2014-10-26 14:08:21 +01:00
Bailey Ling
64b9ae176d
Merge pull request #618 from rkannan82/master
...
Display warnings only when there are no errors messages.
2014-10-25 22:57:45 -04:00
Bailey Ling
37ddb6e7da
Merge pull request #622 from spacelis/master
...
Make tabline's left separators customizable as right separathers.
2014-10-18 11:37:55 -04:00
wangjun
78c3cd9bba
Update durant.vim
...
remove comments
2014-10-17 14:40:42 +08:00
wenli
7c4bf0aba6
Make tabline's left separators customizable as right separathers.
2014-10-15 22:32:00 +02:00
Benjamin Chrétien
23b452d1ae
themes: fix GUI murmur theme.
2014-10-14 00:17:45 +02:00
Kannan Rajah
84c242a27d
Display warnings only when there are no errors messages.
...
In large code base, typically there will lot of warnings because the
file has been changed by many people and not everyone bothered to follow
coding conventions. So its more useful to show the errors first. Once
all errors have been fixed, we can focus on warnings.
2014-10-12 17:38:06 -07:00
Bailey Ling
0bc3a21116
Merge pull request #614 from Pychimp/two-themes
...
Update raven.vim
2014-10-05 18:13:08 -04:00
Pratheek
258817ff38
Update raven.vim
...
- Fixed the incorrect cterm background value for airline_warning
2014-10-05 20:05:17 +05:30
Bailey Ling
53e765a49d
Merge pull request #582 from Pychimp/two-themes
...
Added two themes
2014-10-05 08:30:32 -04:00
Pychimp
b16870fbf9
Added theme support for console vim
...
- Both themes (raven and silver) have been updated
2014-10-05 15:05:47 +05:30
Kevin Ballard
908f031f42
Handle special characters in part conditions
2014-09-22 01:44:23 -07:00
Bailey Ling
4dab93470f
improve buffer index mode and fix usages where there's overflow
2014-09-17 09:52:08 -04:00
Bailey Ling
8421f03178
Merge pull request #598 from wesQ3/pr
...
Added extension for wesQ3/vim-windowswap
2014-09-15 12:31:33 -04:00
Yu Huang
ae472d6716
Add buffer_idx_mode to vim-airline.
...
Update documentation.
Keep buffer index-id map a script scope variable.
2014-09-14 18:58:20 -07:00
Bailey Ling
3eef719c4d
Merge pull request #595 from mseabold/upstream
...
Tabline: Highlight unselected modified buffer
2014-09-11 22:40:39 -04:00
Wes Malone
d6475684b7
add windowswap extension
2014-09-10 19:05:42 -05:00
Matt Seabold
a5e5d8ab4f
Tabline protect against missing palletes
...
If normal_modified or normal_modified.airline_c aren't present, fallback
to the default normal.airline_c.
2014-09-08 09:43:15 -04:00
Matt Seabold
bfd160a08b
Tabline: Highlight unselected modified buffer
...
Use the modified airline_c color on unselected modified buffers in order
to highlight them as modified while unselected.
2014-09-04 15:51:40 -04:00
Igor Petrov
6e5865473c
Tabline close button flag added
2014-09-04 02:48:48 +04:00
Daniel Hahler
7c65176499
Add readonly
indicator also for !&modifiable
...
While typically both are set (e.g. with `:help`), I am using the
modifiable setting alone to prevent editing of some files via an
autocommand (`*.css`, if `*.scss` exists).
I can also set `readonly` for this buffer, but that gets reset when
reloading the buffer, which is not the case for `modifiable`.
2014-08-28 00:23:59 +02:00
Quinn Strahl
30df99a681
Don't wipe out b:airline_head if fugitive finds the head
...
- Fugitive can edit virtual files that represent objects in git; while
editing these files, it still reports on the HEAD of the relevant
repo, which should be displayed as the branch (rather than having the
branch section disappear)
2014-08-25 09:51:52 -04:00
Pychimp
47fd63586c
Added two themes
...
- Raven (for Dark colorschemes)
- Silver (for Light colorschemes)
2014-08-24 13:20:19 +05:30
Andrew Gregory
83a7e30790
use commit hash as git branch with detached HEAD
...
Abbreviated to 7 characters to match `git rev-parse --short HEAD`.
2014-08-20 18:59:15 -04:00
Quinn Strahl
ed180fda62
Preserve section c text for inactive windows
...
- Closes #573
2014-08-15 15:44:18 -04:00
perkint
0349f85ab0
bugfix for a tabline refresh problem
2014-08-12 17:26:52 -07:00
Asa Jay
ac08bbcf26
Added CtrlP support, refined visual and replace mode colors.
2014-07-30 22:38:17 +02:00
Mathias Andersson
faa15c136c
Added extension for tpope/vim-capslock
2014-07-29 00:55:53 +02:00
Suraj N. Kurapati
bd7220cb5b
cterm=reverse not honored; only term=reverse was
...
This patch makes Airline honor the `cterm=reverse` syntax attribute.
2014-06-29 06:33:42 -07:00
kdurant
ea828c5a6a
Create durant.vim
...
add airline scheme
2014-06-25 12:54:07 +08:00
Bailey Ling
3ab1bb7eb0
Merge pull request #527 from zdm/master
...
Always use absolute file path when comparing buffers names
2014-05-31 12:08:11 -04:00
Christian Brabandt
f2ae2bd7d0
integrate changesPlugin for displaying hunks
2014-05-27 20:22:59 +02:00
zdm
45cab177ef
always use absolute file path when comparing buffers names
2014-05-22 12:29:35 +03:00
Ben Joldersma
4f904ab0d4
Fix #462 - Configurable head limit.
2014-05-21 10:41:53 -07:00
Bailey Ling
bfcece76c9
add readonly mode so it can be themed independently. resolves #510
2014-05-10 14:41:21 +00:00
Saad Malik
99a4b38732
Fix #456
...
Fix for #456 Status line text color too dim for inactive windows.
2014-05-04 12:58:04 -07:00
Christian Brabandt
534d8e844b
updated nrrwrgn integration
2014-05-03 14:16:50 +02:00
Bailey Ling
a222518b76
Merge pull request #497 from johnathanz/master
...
doesn't assume user has 'set autochdir' set
2014-04-23 21:11:33 -04:00
Johnathan
9e8fe7a98e
doesn't assume user has 'set autochdir' set
2014-04-24 03:03:03 +10:00
Christian Brabandt
a90a39b4aa
new NrrwRgn integration
2014-04-23 01:23:42 +02:00
Bailey Ling
81430cbdf6
append to the existing value in case the user defined it.
2014-04-20 14:52:06 +00:00
Christian Brabandt
931367d9fb
Enable :AirlineToggleWhitespace,
...
even if g:airline#extensions#whitespace#enabled is disabled
2014-04-20 00:39:43 +02:00
Bailey Ling
fafb9ea76e
provide option to disable runtimepath extension loading. resolves #483
2014-04-19 14:38:02 -04:00
Bailey Ling
e49eac95a3
add support for configurable whitespace checking algorithms and default it to the simplest one. resolves #484
2014-04-19 14:27:14 -04:00
Bailey Ling
abee990d30
handle cases where the augroup has not be defined yet. resolves #492
2014-04-19 14:16:36 -04:00
Davit Samvelyan
7b0d80050a
Now trailing tabs are also reported, fixed bug when trailings with mixed tabs and spaces were being reported as mixed indents, case when count of spaces at the end of tabbed indentation less then tabstop does not reported as mixed indent anymore.
2014-04-05 16:41:27 +05:00
Bailey Ling
a37f0b9ae0
restore original directory change detection. also resolves #474 .
2014-04-03 00:54:43 +00:00
Bailey Ling
d111e4edb3
remove usage of fugitive#detect as per request
...
https://github.com/tpope/vim-fugitive/issues/463
2014-04-01 16:45:06 -04:00
Russell Hancox
13297cee03
Add CursorHold autocmd to unset airline_head
2014-03-28 10:53:13 -04:00
Russell Hancox
25059d43b1
Save branch head to a buffer variable
...
Save branch head to a buffer-local variable to prevent looking up the VCS head for every status line refresh.
2014-03-24 14:01:31 -04:00
Pychimp
496ba60984
Fixes incorrect fg value in visual modified
...
- changes it from white (hard to read) to dark grey-ish (easier to read)
2014-03-23 00:38:28 +05:30
xinleibird
3c66f13b9a
My fault, it's a transferred error, add a '\' that' works fine.
2014-03-22 16:16:27 +08:00
xinleibird
3bde2fabd1
filter() result error
2014-03-22 14:41:48 +08:00
Bailey Ling
ab92a95969
Merge pull request #442 from blueyed/doc
...
Minor doc fixes
2014-03-21 23:54:30 -04:00
Bailey Ling
9291968b94
Merge pull request #466 from Pychimp/master
...
Improvements to Sol and Luna themes
2014-03-21 23:48:07 -04:00
Pychimp
5a3e8852bd
Improve colour highlights
...
- Sol: Used a less distracting color to show a modified file/buffer
- Sol: Similar change as above, to tabline as well
- Sol: Warning colour imporved (Previously was some bad shade of magenta)
- Sol: All the Above mentioned changes replicated for CTERM values as well
--------------------------------------------------------------------------
- Luna: `Inactive Modified` colour is improved (Was a shade of red
that was hard to read)
2014-03-21 00:33:26 +05:30
Emily St
f196ea1f36
Customizes tabline appearance: type, close button
...
This commit adds a couple of new settings so that it's possible to hide
the tab type (all the way to the right) and the symbol which represents
the close button.
The settings and their defaults:
let g:airline#extensions#tabline#show_tab_type = 1
let g:airline#extensions#tabline#close_symbol = 'X'
2014-03-19 13:46:44 -07:00
Bailey Ling
799e5e028f
Merge pull request #455 from taketwo/fix-empty-key-error
...
Fix "Cannot use empty key for Dictionary" error
2014-03-10 08:15:17 -04:00
Sergey Alexandrov
4a76132cbe
Fix "Cannot use empty key for Dictionary" error
...
This commit resolves compatibility issue with fugitive plugin. When
using "Gdiff" command on some file, fugitive attempts to open the
current and the index version of the file. For example, if the file is
/home/taketwo/path/to/the/project/README.md
then fugitive will use the following path to open the index version:
fugitive:///home/taketwo/path/to/the/project/.git//0/README.md
Opening this file leads to a cascade of errors like this:
Error detected while processing function
airline#extensions#tabline#get..<SNR>162_get_buffers..<SNR>162_get_visible_buffers..airline#extensions#tabline#get_buffer_name..airline#extensions#tabline#unique_tail_improved#format:
line 20:
E713: Cannot use empty key for Dictionary
The problem is that when a filename like this is being tokenized, there
appear empty "" tokens, and an error occurs when using them as keys in
`path_tokens[token_index]` dictionary. This fix simply skips empty
tokens.
2014-03-10 12:27:22 +01:00
Bailey Ling
d99112d6c6
improve whitespace detection. resolves #452 .
2014-03-09 21:58:42 -04:00
Evgeni Kolev
7857cc2345
Merge pull request #410 from coven/master
...
Branch extension bugs. Fix #444
2014-03-01 08:39:05 +02:00
Bailey Ling
9aea79bb99
Merge pull request #404 from blueyed/solarized-inactive-like-vertsplit
...
solarized: use VertSplit bg for inactive statusline
2014-02-27 22:02:35 -05:00
Bailey Ling
942c6ae382
reset current buffer when one gets deleted. resolves #399
2014-02-25 20:34:52 -05:00
Paweł Więcek
63f811e15c
Enable branch extension when vcscommand is available
2014-02-25 22:43:19 +01:00
Paweł Więcek
5e25794d4b
Correctly detect mercurial repos using lawrencium
2014-02-25 22:36:36 +01:00
Daniel Hahler
ffbbaa769a
Clarify doc for loading custom extensions
2014-02-20 00:30:16 +01:00
Daniel Hahler
2dc416aa8f
tagbar: only lookup tag once every second
...
This makes scrolling (holding done j/k) much smoother, and the current
tag gets pulled in via CursorHold anyway.
Fixes https://github.com/bling/vim-airline/issues/387
2014-02-20 00:06:04 +01:00
Yasuharu Ozaki
0f091db08f
Add new color theme: hybrid
2014-02-14 21:59:31 +09:00
Asa Jay
82efa95d94
Added new color theme: Kalisi
2014-02-06 00:25:19 +01:00
Daniel Hahler
3e044418a3
Revert changes to s:NM, add s:NMi for inactive windows
2014-01-26 12:04:30 +01:00
Bailey Ling
fae68dbcb7
account for possibilty of branch extension unavailable. resolves #419 .
2014-01-20 12:39:33 -05:00
Bailey Ling
baed8ac063
happy 2014
2014-01-19 23:44:44 -05:00
ralesi
75ee42b118
Add deeper netrw support, including Git branch head and netrw sorting
...
options
2014-01-19 12:06:55 -07:00
Rich Alesi
6141a59278
Allow changes to airline_symbols.branch after init
...
If the user updates the airline_symbols.branch variable later in the vimrc, the value will not update after the initial init. Since these variables are only used in the get_head() function, I moved them locally within the function to allow evaluation on each instance.
2014-01-15 21:31:07 -07:00
Daniel Hahler
41a148f1e6
solarized: use VertSplit bg for inactive statusline
...
Adjust foreground color accordingly, also for non-active modified
filename (to stand out).
2014-01-10 22:47:33 +01:00
Evgeni Kolev
1c41ce53d9
Add promptline.vim extension
2014-01-10 22:14:21 +02:00
gstewart
48f762e312
Fixed modified tab/buffer not updating in tabline
2013-12-31 17:38:16 -08:00
zdm
50fd649110
docs updated, formatters moved to separate filenames
2013-12-23 07:41:24 +02:00
zdm
6c79004aaa
show tab nr condition moved to right place
2013-12-22 05:32:06 +02:00
zdm
0714c35547
add skipped symbol fix
2013-12-22 05:17:01 +02:00
zdm
f6133e4fa1
dos path fixed
2013-12-22 04:03:07 +02:00
zdm
43c1636e36
windows path replaced
2013-12-22 03:49:30 +02:00
zdm
8d7c2ad830
uniq_tail improved formatter added
2013-12-22 02:27:42 +02:00
Bailey Ling
233e3c60ce
improve performance when showing tabs in the tabline ( #326 ).
2013-12-16 00:27:18 -05:00
Bailey Ling
df2f33d6a5
specify maximum for whitespace checking. resolves #378 .
2013-12-13 16:38:32 -05:00
Alessandro Di Martino
7c10cfa73e
Improve some colors
2013-12-13 21:50:00 +01:00
Alessandro Di Martino
285b4da3e5
Add kolor theme
2013-12-13 17:40:52 +01:00
Daniel Hahler
ba899b2dde
eclim: only consider signs placed by eclim
...
Ref: https://github.com/bling/vim-airline/pull/293
2013-12-11 09:40:50 +01:00
Quinn Strahl
fdc847c8da
Correct quickfix window detection pattern
2013-12-09 15:05:10 -05:00
Bailey Ling
ce32405105
fix possibility of the branch extension being unavailable. resolves #366 .
2013-12-03 20:01:26 -05:00
Bailey Ling
0966b693d9
expose cleaner api to determine empty head.
2013-12-03 05:32:54 +00:00
Dmitry Kruglov
08a57d0227
Hide hunks when Git Gutter is enabled, but current file is NOT under git version control
2013-12-02 17:29:04 -08:00
Bailey Ling
ce15809db3
improve tabline performance during scroll ( #362 ).
2013-12-02 03:00:31 +00:00
Evgeni Kolev
63272a08ae
Add tmuxline extension
2013-11-23 11:10:11 +02:00
Bailey Ling
253974506a
disable vcscommand integration by default. resolves #340 .
2013-11-12 09:45:04 -05:00
Bailey Ling
f2f164bda1
evaluate line number symbol. resolves #336 .
2013-11-10 16:04:03 -05:00
David Zderic
2e8f99d39b
Use VCSCommand to display revision if available
2013-11-08 10:39:00 +11:00
Bailey Ling
31f36740c8
look up whitespace checks all the time. resolves #330 .
2013-11-03 14:03:52 -05:00
Mikkel Oscar Lyderik
47acdcb92c
adds userdefined space in tabline
...
workaround for #327
2013-11-02 22:46:36 +01:00
Bailey Ling
99b7cdf334
improve performance with accent cache ( #326 ).
2013-11-01 00:58:08 -04:00
Bailey Ling
c4c4be836e
implement new unique_tail formatter. resolves #230 .
2013-10-21 14:25:21 -04:00
Bailey Ling
dd2be8ac8d
detect whether quickfix or location list is open.
2013-10-21 13:22:07 -04:00
Bailey Ling
592cc412cf
fix and improve airline toggling functionality.
2013-10-13 18:01:38 -04:00
Bailey Ling
5976cf3a48
a min tab count of 1 is the same as always showing ( #304 ).
2013-10-08 13:05:43 -04:00
Bailey Ling
00cd0be601
fix detection of tab count. resolves #304 .
2013-10-08 10:00:29 -04:00
Bailey Ling
9e53c2c155
add more documentation about accents. resolves #299 .
2013-10-06 09:22:33 -04:00
Bailey Ling
491091706f
add guard for possible undefined window context ( #276 ).
2013-10-06 09:03:47 -04:00
Bailey Ling
a75f91baba
fix luna ctrlp theming.
2013-10-06 08:50:04 -04:00
U-jfilippc\jfilip
6de7c3e0fe
Added lucius.vim to airline themes
2013-10-05 23:25:30 -05:00
Bailey Ling
f26c7d4143
echo warning message if duplicate statusline func gets added.
2013-10-04 10:27:49 -04:00
Bailey Ling
008eb8cd3b
Merge pull request #296 from xinleibird/project_tree
...
Add a simple eclim's ProjectTree status line
2013-10-02 11:21:15 -07:00
xinleibird
fc6c9120e4
Add a simple eclim's ProjectTree status line
2013-10-03 00:07:57 +08:00
Bailey Ling
a8c96b6020
parse out submodule path when not in a .git directory ( #273 ).
2013-10-02 10:18:33 -04:00
xinleibird
47ecfff9b8
Fix a wrong determines order name. It should be ':SyntasticCheck' not ':SyntasticStatuslineFlag'.
2013-10-02 13:50:04 +08:00
Bailey Ling
2735282992
account for different git submodule format. resolves #273 .
2013-10-01 21:36:24 -04:00
Bailey Ling
6c66ad5dfc
refactor ctrlp statusline to use builder. resolves #291 .
2013-10-01 21:23:17 -04:00
xinleibird
4eec9cfa91
Add eclim extension and update documentation.
2013-10-02 04:19:15 +08:00
xinleibird
7365ccf3fe
Add eclim's checker extension, now it conform to the specification
2013-10-02 02:25:43 +08: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
b460822c84
Merge branch 'dev'
2013-09-28 01:53:55 +00:00
Bailey Ling
a81d1cd9c7
refactor the rest of the themes to use refresh. resolves #288 .
2013-09-27 21:43:32 -04:00
Bailey Ling
2f3b33daae
fix solarized theme being out of sync ( #288 ).
2013-09-27 21:36:44 -04:00
Bailey Ling
60edd20300
Merge pull request #286 from Pychimp/master
...
Added Sol compatiable vim-airline theme
2013-09-27 14:01:01 -07:00
Pychimp
d7c66aa377
Sol theme, Now for vim-airline !
...
- Colors are now pretty spot-on (with respect to gvim) ! :)
2013-09-28 01:59:29 +05:30
Bailey Ling
9d3c6506da
add table of contents to help file.
2013-09-27 10:34:41 -04:00
Bailey Ling
7dd8c4705c
replace powerline symbols with escaped syntax. resolves #283 .
2013-09-27 02:15:49 +00:00
Pychimp
3c2fa1d16d
Added Sol compatiable vim-airline theme
2013-09-26 20:59:04 +05:30
Bailey Ling
d123e3583a
fix parts being undefined when referenced by sections in vimrc ( #207 ).
2013-09-25 22:13:57 -04:00
Bailey Ling
c8ef456a25
Merge branch 'dev'
2013-09-25 20:41:40 +00:00
Bailey Ling
4d706c5f4a
use columns instead of winwidth ( #222 ).
2013-09-25 19:26:25 +00:00
Bailey Ling
e507f481a2
allow parts to be defined in the vimrc as overrides. resolves #284 .
2013-09-25 18:48:18 +00:00
Ivan Puchkov
9fdb064f11
Add new dark theme murmur
2013-09-25 22:53:30 +07:00
Pychimp
46099b43da
Whitespace indicator color changed
...
Overrides the default orange to one
that suits the theme, slightly better
2013-09-25 19:18:22 +05:30
Bailey Ling
c869665b16
guard against attempting to load invalid themes.
2013-09-25 00:25:20 -04:00
Bailey Ling
89a9b9399f
add monochrome theme.
2013-09-24 22:54:20 -04:00
Bailey Ling
93a95b3fdc
correct visual fg color for serene theme.
2013-09-24 20:08:00 -04:00
Bailey Ling
6cf12f7268
oops. #279 .
2013-09-24 19:06:19 -04:00
Bailey Ling
1b0c260980
revert back to cursormove. resolves #279 .
2013-09-24 18:50:49 -04:00
Stanislav Seletskiy
095295b839
fix solarized warningmsg fg color
2013-09-24 23:29:39 +07:00
Bailey Ling
5dcd1e942c
Merge branch 'dev'
2013-09-23 21:22:59 +00:00
Bailey Ling
66d4c8c893
prevent clobbering startup info message. resolves #156 .
2013-09-23 21:18:52 +00:00
Bailey Ling
99329b0c96
default the tabline separators to powerline if defined.
2013-09-23 18:52:37 +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
e5fb2456d4
redefine mode as a part with a bold accent.
2013-09-23 14:52:39 +00:00
Bailey Ling
019d158a02
active winnr should always be set.
2013-09-22 19:13:08 -04:00
Bailey Ling
245fe31f80
correct tests.
2013-09-22 18:05:58 -04:00
Bailey Ling
3c1498017f
missed a space ( #256 ).
2013-09-22 17:51:16 -04:00
Bailey Ling
ccd419bb0f
fix 7.2 incompatibility.
2013-09-22 17:43:14 -04:00
Bailey Ling
ad96110eef
Merge branch '256' into dev
2013-09-22 17:29:37 -04:00
Bailey Ling
a6cee001e8
Merge branch 'master' into dev
2013-09-22 17:22:50 -04:00
Bailey Ling
cf643aa7fa
disable arrows by default for tabline.
2013-09-22 17:21:47 -04:00
Bailey Ling
cdc951be36
bufenter is sufficient to detect buffer list changes.
2013-09-22 17:20:38 -04:00
Bailey Ling
b5e8ea275e
do not render accents in inactive splits. resolves #270 .
2013-09-22 17:15:02 -04:00
Bailey Ling
bb30c09371
bring back readonly by default for section_c in overrides ( #270 ).
2013-09-22 16:19:15 -04:00
Bailey Ling
474116461f
use __accent to better differentiate between a real group.
2013-09-22 15:20:06 -04:00
Bailey Ling
8e3c91e486
fix syntax error for solarized theme. resolves #269 .
2013-09-22 14:30:55 -04:00
Bailey Ling
5aacb96135
Merge pull request #268 from JarrodCTaylor/master
2013-09-22 14:27:41 -04:00
JarrodCTaylor
8dcc370d94
Added new minimal dark theme understated
2013-09-22 11:25:09 -05:00
Bailey Ling
aa41683342
Merge branch '256' into dev
...
Conflicts:
autoload/airline/init.vim
2013-09-22 11:34:35 -04:00
bling
bfe35ed76c
replace all instance of space with the no-break space. resolves #256 .
2013-09-22 11:29:27 -04:00
Bailey Ling
b39308c49b
Merge branch 'dev'
2013-09-22 11:01:21 -04:00
Bailey Ling
e01b2a99c0
remove comment about file length, as it is already proper.
2013-09-22 11:01:12 -04:00
Markus Koller
3cc1dcb697
Show current buffers in the middle of the tabline ( bling/vim-airline#222 )
2013-09-22 08:23:19 +02:00
Bailey Ling
dfb17198da
Merge pull request #263 from edkolev/solarized-improvements
...
Solarized improvements
2013-09-21 20:10:14 -07:00
Evgeni Kolev
a3df71463e
Solarized modifications.
...
- Remove 'reduced' option
- Use yellow for insert, red for replace mode
2013-09-20 22:14:37 +03:00
Stanislav Seletskiy
e787b570e9
Modify solarized normal mode tty colors
2013-09-20 22:12:43 +03:00
Evgeni Kolev
39cb28b7e3
Solarized improvements.
...
- Use gray for normal mode bg color
- Add replace mode colors
- Modify solarized dark colors
2013-09-20 22:02:25 +03:00
Bailey Ling
12ea154de8
use code 160 for space to fix rendering problems.
2013-09-20 15:24:42 +00:00
Bailey Ling
7d78fbf2cc
give the line number a bold accent by default.
2013-09-20 00:01:02 -04:00
Bailey Ling
20b2ee3ac3
add bold and italic accents.
2013-09-19 23:24:31 -04:00
Bailey Ling
0860d2f525
Merge pull request #261 from pydave/add-ctrlp-hide-modes
...
Add option to hide previous/next modes in ctrlp
2013-09-19 11:20:49 -07:00
pydave
0b70880471
Add option to hide previous/next modes in ctrlp
...
New option airline#extensions#ctrlp#show_adjacent_modes allows users to
toggle showing the previous and next modes. The default is the same
behavior as before: show the modes.
Add documentation for new option.
These modes are useful if you switch forward and back through ctrlp's
functionality, but they are visual noise if you don't.
2013-09-19 10:01:10 -07:00
Bailey Ling
948a4178a8
use code 160 for space to fix rendering problems.
2013-09-18 22:23:50 -04:00
Bailey Ling
2d465afb95
tweak default truncation values so 80-width still shows all ( #259 ).
2013-09-18 21:33:17 -04:00
Bailey Ling
9d5a1744a1
support multiple accents in the same section ( #203 ).
2013-09-18 21:31:39 -04:00
Bailey Ling
a5fc024f3a
add additional accents by default.
2013-09-17 23:55:39 -04:00
Bailey Ling
e93263538f
automatically provide the red accent.
2013-09-17 23:13:32 -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
7e7766ee45
introduce accents into the color palette.
2013-09-15 11:59:22 -04:00
Bailey Ling
6f3a4daba4
add support for showing/hiding tabline based on tab count ( #252 ).
2013-09-15 08:49:51 -04:00
Bailey Ling
c197532b7a
refactor helper function to support skinning left and right side ( #176 ).
2013-09-14 13:07:37 -04:00
Bailey Ling
59e4ab49ce
fix windows path separator parsing ( #251 ).
2013-09-13 19:15:01 +00:00
Bailey Ling
8606f3ebc1
use the same fugitive check as the extension.
2013-09-13 04:44:17 +00:00
Bailey Ling
a88996b170
account for possible undefined variable.
2013-09-13 00:43:02 -04:00
Bailey Ling
ebb0040ca8
Merge branch 'fix-quickfix-title' of https://github.com/pydave/vim-airline into pydave-fix-quickfix-title
2013-09-13 00:40:30 -04:00
pydave
979c81c59f
Include the quickfix title in the statusline
...
The quickfix title often has useful information about how it was
invoked. Include it in the statusline.
2013-09-12 19:10:09 -07:00
Bailey Ling
93b9fa7c75
fix spacing when both trailing/indent occurs.
2013-09-11 21:01:25 +00:00
Bailey Ling
61de5d3949
i can't do boolean logic ( #247 ).
2013-09-11 17:55:57 +00:00
Bailey Ling
8886ea0a23
fix guard condition for csv. resolves #247 .
2013-09-11 17:08:10 +00:00
Bailey Ling
1dcdfc502e
set the buffer max a bit more aggressive, add dot prefix/suffix.
2013-09-10 23:50:47 -04:00
farseer90718
e117af9dd0
Disable white space detection for unmodifiable buffers
2013-09-11 10:08:51 +08:00
Bailey Ling
3f67df6440
Merge pull request #243 from seletskiy/solarized-tty
...
solarized.vim: tty colors (fix #242 )
2013-09-10 15:21:02 -07:00
Bailey Ling
80afce1eb1
exclude quickfix from tabline. resolves #244 .
2013-09-10 19:23:29 +00:00
Stanislav Seletskiy
d2c70194b0
solarized.vim: tty colors ( fix #242 )
2013-09-10 23:50:10 +07:00
Bailey Ling
aabb85ddc2
Merge branch 'master' into dev
2013-09-10 16:05:02 +00:00
Bailey Ling
2702015544
hide errors ( #241 ).
2013-09-10 16:00:31 +00:00
Bailey Ling
3a5a40730a
check guard for all extensions. resolves #241 .
2013-09-10 15:40:54 +00:00
Bailey Ling
bed11010ba
make the separator optional for older vim versions. resolves #239 .
2013-09-10 01:34:35 +00:00
Bailey Ling
55f524de77
support for conditional parts. resolves #238 .
2013-09-08 19:06:57 -04:00
Bailey Ling
4c6aa4401b
check the git/hg root when changing buffers. resolves #237 .
2013-09-08 14:03:49 +00:00
Bailey Ling
b4cff305b1
Merge pull request #234 from ompugao/theme-serene
...
add the old type of 'simple' theme and change the name of it to 'serene'
2013-09-08 06:33:00 -07:00
Shohei Fujii
5e5414dac6
tiny fix
2013-09-08 08:32:40 +09:00
Bailey Ling
71a4b2f595
shorten path name as much as possible.
2013-09-07 19:06:01 +00:00
Bailey Ling
697e08a83c
redefine ffenc as a function ( #235 ).
2013-09-07 18:14:41 +00:00
Shohei Fujii
d26ca50a97
add new theme named 'serene'
2013-09-08 00:19:00 +09:00
Bailey Ling
dbd9121c05
allow collapsing to be configurable. also fix win paths.
2013-09-07 15:09:19 +00:00
Bailey Ling
87c999358c
add profile method for mode switching
2013-09-07 13:21:04 +00:00
Bailey Ling
8cfb43fe32
refresh inactive modified colors on theme switch. resolves #233 .
2013-09-07 13:03:15 +00:00
Bailey Ling
d74b3bfdbf
fix inactive modified arrow colors ( #233 ).
2013-09-07 13:00:10 +00:00
Bailey Ling
ad3556d243
remove redundant highlight group.
2013-09-07 03:43:23 +00:00
Bailey Ling
db58294871
Merge branch 'master' into dev
2013-09-07 01:57:39 +00:00
Bailey Ling
bfb091c3ca
minor cleanup of documentation.
2013-09-07 01:52:53 +00:00
Bailey Ling
22f1701a2e
keep fmod as a valid configuration variable.
2013-09-07 01:36:15 +00:00
Bailey Ling
f11e133c1a
take window size into account before restricting the limit.
2013-09-07 01:33:07 +00:00
Bailey Ling
2e46190034
pass in buffers to the formatter.
2013-09-07 00:51:58 +00: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
7a2f6525c3
implement customizable file name formatting ( #230 ).
2013-09-06 21:50:06 +00:00
Bailey Ling
2391ed0579
show hidden buffers with a different color. resolves #229 .
2013-09-06 20:32:10 +00:00
Bailey Ling
8b71285c6b
fill in inactive modified colors.
2013-09-06 20:32:09 +00:00
Bailey Ling
46db9b9bdf
check existence of inactive modified colors before using them.
2013-09-06 20:32:09 +00:00
Bailey Ling
3c49b9cf3d
use airline_c for better predicability.
2013-09-06 20:32:09 +00:00
Bailey Ling
29972ef857
basic working independent inactive modified highlights.
2013-09-06 20:32:08 +00:00
Pychimp
a1eca0a06a
Luna theme support for Tabline
...
Slightly better theming, than the automatically genenrated one by
Airline.
2013-09-06 21:41:22 +05:30
Pychimp
003522a42d
Merge remote-tracking branch 'upstream/master'
...
Merging bling's upstream into my fork
2013-09-05 23:03:45 +05:30
Bailey Ling
e1be8ff22f
just in case...defense coding.
2013-09-05 17:17:04 +00:00
Bailey Ling
fc6cf26ac6
limit the number of buffers displayed. fixes #221 .
2013-09-05 17:07:31 +00:00
Pychimp
210a974980
creating tabline theme
...
WORK IN PROGRESS !!
2013-09-05 22:31:36 +05:30
Vitor Antunes
e967d09bf3
Allow flag configuration of tagbar statusline string
2013-09-05 15:42:17 +01:00
Bailey Ling
f57b65d3b8
Merge pull request #225 from seletskiy/solarized-tabline
...
fix solarized colors in tabline
2013-09-05 07:14:22 -07:00
Bailey Ling
11f03baf37
Merge pull request #224 from seletskiy/tabline-detect-modified
...
add tab modification detection
2013-09-05 07:08:25 -07:00
Bailey Ling
9356265d3e
remove repeated comments. add zenburn to auto theme switch.
2013-09-05 14:06:38 +00:00
Bailey Ling
ada6523d59
Merge pull request #223 from paulbdavis/master
...
Added zenburn theme
2013-09-05 07:05:15 -07:00
Bailey Ling
ecd66184f6
init whitespace extension to blank. fixes #226 .
2013-09-05 14:01:57 +00:00
Stanislav Seletskiy
8c32da38c7
add tab modification detection
2013-09-05 12:52:29 +07:00
Stanislav Seletskiy
4596c9ce22
fix solarized colors in tabline
2013-09-05 12:36:38 +07:00
paulbdavis
eb3a70bbf2
added zenburn theme
2013-09-04 20:17:50 -04:00
Bailey Ling
a9b2fd2c41
allow configuration for showing only tabs. resolves #220 .
2013-09-04 20:17:02 +00:00
Bailey Ling
56eaf3733f
add support to show tabline based on minimum buffer count ( #220 ).
2013-09-04 19:53:04 +00:00
Bailey Ling
53364af1e3
support configuring tabline separators independently. resolves #215 .
2013-09-04 19:20:06 +00:00
Bailey Ling
2066410156
use at least 2 spaces to be considered an indent. fixes #177 .
2013-09-04 18:10:45 +00:00
Bailey Ling
00e5e1c20e
support changing how numbers are displayed in tab mode. resolves #217 .
2013-09-04 18:06:57 +00:00
Bailey Ling
9b7191d052
define a new tabline group in the color palette ( #212 ).
2013-09-04 17:23:10 +00:00
Bailey Ling
561422c11c
support customizable tabline themes. resolves #212 .
2013-09-04 15:54:48 +00:00
Bailey Ling
e167e67819
implement showing buffer numbers and modified ( #212 ).
2013-09-04 15:47:05 +00:00
Bailey Ling
c144543d03
fixes color change regression. resolves #218 .
2013-09-04 15:25:55 +00:00
Bailey Ling
15322a26ed
fix split count per tab. resolves #214 .
2013-09-04 02:11:51 +00:00
Bailey Ling
2051dfb9a1
give gui users some love.
2013-09-03 18:48:08 +00:00
Bailey Ling
d0579e012c
Merge branch 'dev'
2013-09-03 15:04:31 +00:00
Bailey Ling
bf3f8ba946
mainly for windows, where paths are case insensitive.
2013-09-03 15:04:22 +00:00
Bailey Ling
a4deb82ac4
since this is disabled by default, set showtabline automatically.
2013-09-03 14:13:58 +00:00
Bailey Ling
cedd91d23a
add support for detecting modified buffers.
2013-09-03 03:24:46 +00:00
Bailey Ling
1e353beaa3
refactor and add excludes support.
2013-09-03 03:24:46 +00:00
Bailey Ling
fbdf39c403
better handling of blank buffers.
2013-09-03 03:24:46 +00:00
Bailey Ling
ffcdd3b1a3
support change filename modifier.
2013-09-03 03:24:46 +00:00
Bailey Ling
345a60fb23
extract tabline colors from the current palette.
2013-09-03 03:24:46 +00:00
Bailey Ling
ecccf51401
implement basic working tabline
2013-09-03 03:24:46 +00:00
Bailey Ling
2f7cf4cffd
minor adjustment to inactive sections.
2013-09-03 03:24:41 +00:00
Bailey Ling
6689aca82b
fixes wrong echoing behavior on stock osx vim. resolves #209 .
2013-09-02 20:12:03 -04:00
Bailey Ling
301fcdc64a
use statusline function for better control.
2013-09-02 18:55:15 +00:00
Bailey Ling
9966b3d9f3
Merge branch 'master' into dev
2013-09-02 18:42:38 +00:00
Bailey Ling
60cc5a5ca1
hide hunks for inactive windows.
2013-09-02 14:48:03 +00:00
Bailey Ling
f6900aeb0a
move highlighter code to correct place and test.
2013-09-02 02:57:32 +00:00
Bailey Ling
4b33adee42
possible fix for exit code ( #79 ).
2013-09-01 22:25:43 +00:00
Bailey Ling
7171a169f3
fix regression with ctrlp statusline not changing.
2013-09-01 19:19:34 +00:00
Bailey Ling
c994d08a6d
Merge branch 'master' into dev
2013-09-01 18:55:46 +00:00
Bailey Ling
08f87f2103
add base16 for automatic color switching.
2013-09-01 14:25:10 -04:00
Bailey Ling
92de8ad160
much smarter handling of separators ( #204 ).
2013-09-01 12:20:54 -04:00
Bailey Ling
0ad6deb832
Merge branch 'master' into dev
...
Conflicts:
doc/airline.txt
2013-09-01 10:28:04 -04:00
Bailey Ling
c858116f87
hide warning section in inactive splits.
2013-09-01 10:24:24 -04:00
Bailey Ling
62fa3c37e4
give warning section an orange color by default ( #177 ).
2013-09-01 10:06:25 -04:00
Bailey Ling
69f40d62ee
move part declarations back into init.
2013-08-31 22:48:27 -04:00
Bailey Ling
501e341589
fix error for when keys are not present in unite context.
2013-08-31 21:45:21 -04:00
Bailey Ling
5c0ef8ffbf
improve loading performance
2013-08-31 21:30:49 -04:00
Bailey Ling
1b91c71fc9
make it possible to declare sections in the vimrc ( #204 ).
2013-08-31 17:42:09 -04:00
Bailey Ling
ded2c2ff7e
remove temp fix for vim-signify. resolves #188 .
2013-08-31 16:23:53 -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
Bailey Ling
f11f871e39
redefine mode as a raw part.
2013-08-31 12:07:56 -04:00
Bailey Ling
389650645b
always run the extensions/core funcrefs last.
...
this ensures the user always has priority in customizations.
2013-08-31 11:55:00 -04:00
Bailey Ling
96e92232f6
update example to be less dependent on internals.
2013-08-31 15:29:04 +00:00
Bailey Ling
68331a5e4f
Merge branch 'dev'
...
Implements #204 .
Conflicts:
README.md
2013-08-31 15:02:01 +00:00
Bailey Ling
a249c87f61
separators unnecessary in warning section.
2013-08-31 04:54:52 +00:00
Bailey Ling
7bcb9b5fff
more compatible test for older vim version.
2013-08-31 03:41:19 +00:00
Bailey Ling
a13c692529
define default statusline items with empty contents.
2013-08-31 03:35:23 +00:00
Bailey Ling
500ecf7cd0
support for prefixing with a highlight group.
2013-08-31 03:26:59 +00:00
Bailey Ling
d268744077
test the layout config for the default extension.
2013-08-30 22:44:20 -04:00
Bailey Ling
f5885bf9c2
test creation of sections
2013-08-30 21:15:41 -04:00
Bailey Ling
54ec1f39ca
test some commands
2013-08-30 20:57:34 -04:00
Bailey Ling
cb774fcfd0
use correct direction of separators.
2013-08-30 22:10:47 +00:00
Bailey Ling
c6d996d5ca
define the rest of the extensions.
2013-08-30 22:07:45 +00:00
Bailey Ling
19910a26cb
check existence of all variables.
2013-08-30 21:59:46 +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
6925d567eb
handle reversed highlight groups.
2013-08-28 23:05:28 -04: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
8beb275534
fix inactive highlighting colors.
2013-08-28 15:40:09 +00:00
Bailey Ling
386ba6b087
support controlling whether bufferline variables get overwritten. resolves #195 .
2013-08-28 08:21:32 -04:00
Bailey Ling
6c5672d686
update documentation.
2013-08-28 02:36:12 +00:00
Bailey Ling
bf8fa9af03
fill in the rest of the deprecated variables.
2013-08-28 01:40:32 +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
ea4e0280fb
rename warningmsg to warning.
2013-08-27 23:44:03 +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
2c7e31801f
Merge branch 'symbols'
2013-08-27 18:13:20 +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
d5d87d2cdc
reduce variable deprecation.
2013-08-27 14:12:03 +00:00
Bailey Ling
5c1c985502
tweak width truncation values.
2013-08-27 07:55:28 -04:00
Zekeriya Koc
2be030b7e8
file type check converted to pattern match
...
so extension will be enabled for file types like python.django etc.
2013-08-27 10:40:29 +03: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
1980c51971
extract core logic into the default extension.
2013-08-27 00:56:54 +00:00
Bailey Ling
ccb00be717
check both resolved and unresolved paths ( #187 ).
2013-08-26 15:39:27 +00:00
Bailey Ling
04e00d6933
\n only works with double quotes.
2013-08-26 15:32:18 +00:00
Bailey Ling
c42eefbd1d
must use finish to prevent ctrlp from getting source.
2013-08-26 15:17:24 +00:00
Bailey Ling
9194a9f02d
add temporary fix for vim-signify integration ( #188 ).
2013-08-26 13:46:49 +00:00
Bailey Ling
295fda2f74
resolve script path ( #187 ).
2013-08-26 13:27:09 +00:00
Bailey Ling
358d4328f4
support formattable whitespace messages. resolves #185 .
2013-08-26 02:08:04 +00:00
Bailey Ling
6a3b611ba1
show difference between location/quickfix list. resolves #186 .
2013-08-26 01:46:40 +00:00
Bailey Ling
609b4ab573
fix virtualenv_loaded check.
2013-08-25 17:54:00 +00:00
bling
3fba032439
match up gui colors with term colors for dark theme.
2013-08-25 13:11:37 -04:00
Bailey Ling
2f5ba93d0e
leave the loaded colorscheme alone. fixes #184 .
2013-08-25 12:27:21 -04:00
Bailey Ling
3595debb97
move virtualenv to the right side, so tagbar function names don't shift it all over the place.
2013-08-25 11:51:32 -04:00
Bailey Ling
b9483d8c15
improve builder to support blended sections.
2013-08-25 11:39:42 -04:00
Bailey Ling
59d6b72962
remove redundant args.
2013-08-25 11:39:42 -04:00
Bailey Ling
a91dda01df
improve documentation for writing extensions, also add helper methods.
2013-08-25 15:39:14 +00:00
Bailey Ling
9ca2aa9a8c
Merge pull request #180 from joedicastro/master
...
add virtualenv extension
2013-08-25 08:24:53 -07:00
joe di castro
f37eeeb9af
A better integration of virtualenv to avoid override other extensions
2013-08-25 17:14:12 +02:00
joe di castro
086b924992
Fix error in virtualenv at extensions.vim
...
Fix the global variable name for enable/disable the extension.
2013-08-25 13:38:15 +02:00
Bailey Ling
b34aa78c5a
deprecate airline_detect_iminsert
2013-08-24 22:24:36 -04:00
Bailey Ling
42cb6317c2
add base16 support for all variants.
2013-08-24 21:10:11 -04:00
Bailey Ling
f5e6205049
Merge pull request #181 from esn89/master
...
added base16.vim colorscheme
2013-08-24 17:37:26 -07:00
Evan Ng
00a0c52dbd
added base16.vim colorscheme
2013-08-24 14:34:25 -07:00
joe di castro
f0df8825df
add virtualenv extension
2013-08-24 22:49:54 +02:00
Bailey Ling
c98549913c
remove hackfix and use new tagbar statusline integration.
...
requires 0b14e28719
2013-08-24 09:47:16 -04:00
Bailey Ling
0e6035f75c
convert the highlighter into a singleton.
2013-08-24 09:40:20 -04:00
Bailey Ling
f6d8a981b6
add inactive statusline funcrefs into the pipeline.
2013-08-24 09:31:30 -04:00
Bailey Ling
04daa66b48
Revert "inactivate existing statusline without building a new one."
...
This reverts commit 53b856b0c5
.
2013-08-24 01:08:22 -04:00
Bailey Ling
511411d55e
match up bufferline colors with the gutter.
2013-08-24 01:06:04 -04:00
Bailey Ling
b62634884a
fix bufferline integration
2013-08-24 04:32:44 +00:00
Bailey Ling
b7d0ccdac2
give the light theme inactive mode some more color.
2013-08-24 04:28:37 +00:00
Bailey Ling
74849d4a10
improved unite integration ( #165 ).
2013-08-24 04:08:57 +00:00
Bailey Ling
53b856b0c5
inactivate existing statusline without building a new one.
2013-08-24 03:54:55 +00:00
Bailey Ling
3bb451f1f4
pass context into the builder.
2013-08-24 03:18:43 +00:00
Bailey Ling
2cfab73f1b
fix undotree override bleeding over to the main.
2013-08-24 03:16:14 +00:00
Bailey Ling
98eecd7ae2
add error code 1 for easier override.
2013-08-24 03:02:13 +00:00
Bailey Ling
30c3613924
improve algorithm for inactive colors. resolves #178 .
2013-08-24 02:52:56 +00:00
Bailey Ling
e8d0d24163
prefer function name instead of funcref.
2013-08-24 01:21:09 +00:00
Bailey Ling
95a46cc106
fix whitespace toggle command ( #177 ).
2013-08-23 16:42:55 +00:00
Stanislav Seletskiy
5dd1fba954
solarized: fix contrast and warningmsg
2013-08-23 22:09:11 +07:00
Bailey Ling
dfe2273f7c
add missing file highlight group. fixes #175 .
2013-08-22 20:33:12 -04:00
Bailey Ling
c2632f9dbb
introduce g:airline_theme_patch_func ( #173 ).
2013-08-22 19:55:04 -04:00
Bailey Ling
de4c7253e2
remove function call, no longer needed.
2013-08-22 21:32:11 +00:00
Bailey Ling
c16d6e69a9
pass arguments into funcrefs properly.
2013-08-22 20:22:54 +00:00
Bailey Ling
29dc7dd9b5
pass builder into statusline funcrefs.
2013-08-22 19:45:17 +00:00
Bailey Ling
261dafca9d
fold exclude funcrefs into the default one.
2013-08-22 17:32:44 +00:00
Bailey Ling
e83e12447e
break early implicit if return code is not 0.
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
0dc3a7913d
fix regression; account for symlinks.
2013-08-22 08:27:44 -04:00
mattn
cb112cbcb9
Don't use name 'vim-airline' to check loadable extensions. Someone may git clone as another directory.
2013-08-22 13:19:56 +09:00
mattn
3c7e4b1400
Fixes bundle paths. For example ftbundle add 'vim-airline/./autoload' into RTP.
2013-08-22 13:05:59 +09:00
Bailey Ling
40d6773a22
autoload external extensions ( #170 ).
2013-08-22 02:49:19 +00:00
Bailey Ling
41159bfbc2
improve vim-signify integration ( #169 ).
2013-08-21 23:24:56 +00:00
Bailey Ling
8452029e98
upgrade all funcrefs to support varargs.
2013-08-21 15:14:12 +00:00
mattn
a91b442366
Strictly color value conversion
2013-08-21 10:27:00 +09:00
Bailey Ling
e4a0fe1d9c
move paste symbol variable into extension, update docs.
2013-08-20 23:16:39 +00:00
Bailey Ling
8bc08979d7
inverse doesn't work in all environments, do it manually.
2013-08-20 23:09:40 +00:00
Bailey Ling
0eb6ed1109
Merge pull request #166 from itchyny/paste_symbol
...
paste mark is now a member of extensions
2013-08-20 16:09:36 -07:00
Evgeni Kolev
7a1d7a01b2
allow ctrlp to use mode colors other than insert's colors
...
add global variable g:airline#extensions#ctrlp#color_template which can
hold modes normal|insert|visual|replace as string. ctrlp will use the
given mode's colors if the active theme doesn't define any.
2013-08-20 23:30:46 +03:00
itchyny
20c5c64590
paste mark is now a member of extensions
2013-08-21 05:29:08 +09:00
Bailey Ling
a1fc8fe7ff
add spacing around readonly symbol.
2013-08-20 16:13:08 +00:00
Bailey Ling
a04d7c277a
support vim-signify as a hunk source.
2013-08-20 15:43:26 +00:00
Bailey Ling
35db000651
Merge pull request #163 from buztard/fixes/hunks
...
hunks: Display the hunks summary only if Git Gutter is enabled
2013-08-20 08:10:04 -07:00
Bailey Ling
cbb9bea9db
allow warning section to be overwritten ( #136 ).
2013-08-20 15:02:17 +00:00
Bastian Winkler
bbe077037e
hunks: Display the hunks summary only if Git Gutter is enabled
2013-08-20 16:53:29 +02: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
itchyny
1b6c1bf39c
remove g:airline_detect_readonly
2013-08-20 20:58:29 +09:00
itchyny
57cf78ba77
readonly mark is now a member of extensions
2013-08-20 17:18:01 +09:00