Commit Graph

1512 Commits

Author SHA1 Message Date
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
Christian Brabandt 396b49be4c Merge pull request #1455 from graysonwright/patch-1
[readme] Display install instructions in a table
2017-03-26 22:30:37 +02:00
Grayson Wright e14f6579d7 [format] Display install instructions in a table
Previously, the instructions were displayed in a list without nesting,
and were hard to follow.

Since all the install commands are essentially one-liners,
a table makes it easy to look them up by package manager.
2017-03-26 13:19:09 -07:00
Christian Brabandt b4ad02f906
fix wrong variable name 2017-03-20 08:56:35 +01:00
Christian Brabandt 703241942a
Add filetype to chache, disable cache for fugitive
#1452 (partly)
2017-03-20 08:37:48 +01:00
Christian Brabandt 7813a54912 Merge pull request #1449 from shivrai/master
Update icon spacings
2017-03-17 14:46:33 +01: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 3a23eeac42
Check that 'statusline' option is correct
statusline of quickfix window will be reset in the ftplugin of
$VIMRUNTIME, therefore check that airline is still active

fixes #1447
2017-03-17 12:03:19 +01:00
Christian Brabandt b57022bfc2
update to the documentation
Mention, that the variable
g:airline#extensions#tabline#switch_buffers_and_tabs only works
with the ctrlspace integration.

closes #1390
2017-03-16 21:18:23 +01:00
Christian Brabandt 70dd0655d2
Do not trigger on SessionLoadPost autocommand
This basically reverts commit 64a3bfd

closes #1444
2017-03-16 13:15:17 +01:00
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
Christian Brabandt d46fb524bd Merge pull request #1439 from cxw42/master
Permit appending content to a theme copied from dark.vim
2017-03-13 07:39:07 +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
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
Christian Brabandt ac9e4092ef
Add paranthesis to function call in documentation 2017-02-26 10:49:52 +01: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 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
Christian Brabandt d624a44500
Fix tests for the changed default separators 2017-02-24 22:49:39 +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 dd2740f510 Merge pull request #1408 from chrisbra/highlight_improvements
Highlight improvements
2017-02-24 18:32: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
Christian Brabandt b66c1ef070
Redraw statusline on CompleteDone event
closes #1402
2017-02-11 20:11:59 +01:00
Christian Brabandt 8a01eff1c2 Merge pull request #1396 from originalpositron/master
Truncation fix for whitespace extension
2017-02-07 14:48:02 +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 9a95964256 Fix typo in doc/airline.txt
Add tag for vim-airline
2017-01-19 15:15:05 +01:00
Christian Brabandt e7e4769dc1 Merge pull request #1375 from jreybert/master
Add vimagit extension to display current mode
2017-01-19 15:09:00 +01:00
Jerome Reybert a1db013d3f Add vimagit extension 2017-01-19 14:02:53 +01:00
Christian Brabandt 92d3637384 Merge pull request #1376 from aisk/master
Remove .swp files and add it to gitignore
2017-01-19 08:58:42 +01:00
Long Ang 3a857617e3 Remove .swp files and add it to gitignore 2017-01-19 11:30:35 +08:00
Christian Brabandt 85cbdd8de3 Add link to xkblayout extension 2017-01-18 09:58:33 +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
Christian Brabandt bfac656da9 Merge pull request #1372 from dalguji/master
Add vim-xkblayout extension to display keyboard layout
2017-01-18 08:00:52 +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 e83ed24088 Merge pull request #1358 from chrisbra/1329
Add tab indicator for tabline when buffers are shown
2016-12-19 11:54:38 +01:00
Christian Brabandt 706cee277a Add tab indicator for tabline when buffers are shown
closes #1329
2016-12-16 23:42:58 +01:00