Christian Brabandt
0f78ad819a
Calculate section width dynamically
2017-06-26 14:04:54 +02:00
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
Christian Brabandt and GitHub
811360a095
Merge pull request #1497 from w0rp/update-ale-extension
...
Update the ALE extension
2017-06-26 09:56:32 +02:00
Christian Brabandt
e7d18fe427
Updated README.md mention correct Vundle repo
2017-06-24 17:05:24 +02: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
ac032b752a
Fix missing backquote
2017-06-24 13:43:46 +02:00
Christian Brabandt
b101175683
Mention minpac installation
2017-06-24 13:42:13 +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 and GitHub
52c0afadb9
Merge pull request #1413 from chrisbra/wordformat
...
Improvements to wordcount formatting
2017-06-20 23:31:15 +02:00
Christian Brabandt
258f3e5630
fix failing test by defining all default sections
...
previous commit 2e3055541e broke the unit tests, since it renamed
the syntastic section. Fix that and also test correctly the other
sections, that have been added (and which have not been tested until
now).
2017-06-20 22:38:56 +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
ed95adea1e
update doc: Mention and document ale/neomake extensions
2017-06-20 21:34:35 +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
9168b73411
update doc example, clarify how to truncate string
2017-06-20 14:14:09 +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
Christian Brabandt and GitHub
9eb51f48f4
Merge pull request #1489 from ozelentok/master
...
Improve denite extension performance
2017-06-12 21:11:41 +02:00
Christian Brabandt and GitHub
466198adc0
Merge pull request #1462 from maxfl/airline-vimtex
...
Add vimtex support
2017-05-08 12:10:38 +02:00
Christian Brabandt
d593359500
shorten filetype only when winwidth is < 90
2017-05-02 22:06:36 +02:00
Christian Brabandt and GitHub
b3722b1e82
Merge pull request #1474 from mtn/readme
...
Add dein.vim to plugins-managers
2017-05-02 21:23:45 +02:00
Christian Brabandt
a950a2938a
shorten tagbar extension on short windows
2017-05-02 21:22:47 +02:00
Christian Brabandt
0c368681dd
Add some intro documentation
...
closes #1473
2017-05-02 20:43:08 +02:00
Christian Brabandt
13bd4701ed
Updates to the documentation
2017-04-21 07:41:22 +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
Christian Brabandt and GitHub
396b49be4c
Merge pull request #1455 from graysonwright/patch-1
...
[readme] Display install instructions in a table
2017-03-26 22:30:37 +02: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 and GitHub
7813a54912
Merge pull request #1449 from shivrai/master
...
Update icon spacings
2017-03-17 14:46:33 +01:00
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 and GitHub
46b0b6bf5a
Merge pull request #1427 from thatsmydoing/denite
...
Add support for denite
2017-03-15 10:06:19 +01: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 and GitHub
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
Christian Brabandt
134c0204f3
Do not return a negative background color
...
fixes #1429 and similar
2017-03-05 22:18:04 +01:00
Christian Brabandt and GitHub
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
Christian Brabandt
ac9e4092ef
Add paranthesis to function call in documentation
2017-02-26 10:49:52 +01:00
Christian Brabandt
2ea22c1aaa
Also cache filetype
...
The cache currently prevents e.g. that the wordcount() extensions kicks in the
first time you open a help window. Therefore take the filetype into
consideration as well.
2017-02-26 10:30:02 +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
Christian Brabandt
d624a44500
Fix tests for the changed default separators
2017-02-24 22:49:39 +01:00
Christian Brabandt and GitHub
dd2740f510
Merge pull request #1408 from chrisbra/highlight_improvements
...
Highlight improvements
2017-02-24 18:32:25 +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
Christian Brabandt
b66c1ef070
Redraw statusline on CompleteDone event
...
closes #1402
2017-02-11 20:11:59 +01:00
Christian Brabandt and GitHub
8a01eff1c2
Merge pull request #1396 from originalpositron/master
...
Truncation fix for whitespace extension
2017-02-07 14:48:02 +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
Christian Brabandt and GitHub
e7e4769dc1
Merge pull request #1375 from jreybert/master
...
Add vimagit extension to display current mode
2017-01-19 15:09:00 +01:00
Christian Brabandt and GitHub
92d3637384
Merge pull request #1376 from aisk/master
...
Remove .swp files and add it to gitignore
2017-01-19 08:58:42 +01: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 and GitHub
bfac656da9
Merge pull request #1372 from dalguji/master
...
Add vim-xkblayout extension to display keyboard layout
2017-01-18 08:00:52 +01: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 and GitHub
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
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
5e2ef0cd83
document how to format the wordcount ext. output
2016-12-13 21:23:56 +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
Christian Brabandt and GitHub
781b4ea6a2
Merge pull request #1321 from chrisbra/getwininfo
...
Use getwininfo() for checking quickfix window
2016-12-09 12:59:46 +01:00
Christian Brabandt and GitHub
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 and GitHub
4c39344cc1
Merge pull request #1334 from chrisbra/worktrees
...
Add Worktrees support
2016-12-06 21:17:51 +01: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 and GitHub
ccdc3d6c60
Merge pull request #1337 from mhartington/master
...
feat(): allow for buffer index formatting
2016-11-26 14:26:47 +01: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
Christian Brabandt and GitHub
3ebd7ad64b
Merge pull request #1331 from flatcap/master
...
Abbreviate the text for 'po' translation files.
2016-11-23 08:15:19 +01:00
Christian Brabandt and GitHub
c02d774b05
Merge pull request #1327 from gregorias/nvim_git_issue
...
Do not forward v:shell_error on command fail.
2016-11-20 16:47:32 +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
Christian Brabandt and GitHub
2dae2b364e
Merge pull request #1314 from tbodt/patch-1
...
add vim-bufmru to the list of integrated plugins
2016-11-15 18:58:03 +01:00
Christian Brabandt and GitHub
258430db82
Merge pull request #1312 from gregorias/async
...
Use neovim's async job's instead of system
2016-11-04 21:22:32 +01:00
Christian Brabandt and GitHub
545617f4f4
Merge pull request #1311 from watagashi/fix_lawrencium
...
Fix when using vim-lawrencium
2016-11-04 07:52:32 +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
Christian Brabandt
b97d7a11f4
mention notexists symbol in documentation
2016-11-03 14:01:27 +01:00
Christian Brabandt
516870bf9f
Check for correct async condition
...
fixes #1308
2016-11-02 16:43:47 +01:00
Christian Brabandt and GitHub
0ea4daa103
Merge pull request #1297 from chrisbra/mq
...
Add mq status for hg repositories
2016-10-26 20:47:45 +02:00
Christian Brabandt and GitHub
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
Christian Brabandt and GitHub
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 and GitHub
58e7e276fa
Merge pull request #1302 from chrisbra/loaded_extensions
...
guard against loading extensions twice
2016-10-25 08:00:25 +02:00