Christian Brabandt
044a90ed55
use get(v:, 'lang', '') instead of v:lang
...
closes #1735
2018-06-04 21:45:46 +02:00
Christian Brabandt
981b83003f
fugitive: Use FugitiveHead() instead of fugitive#head
...
function if possible and use it instead of the fugitive#head
(which will always autload the fugitive plugin).
2018-06-04 18:32:30 +02:00
Christian Brabandt
a1680cc36d
fugitive: Check for existence of FugitiveStatusline function
...
as per @tpopes advice.
2018-06-04 17:42:33 +02:00
Christian Brabandt
30a3c4f549
branch: fugitive renamed its functions
...
this caused that the branch extension was not correctly working anymore
because of a refactoring of fugitive tpope/vim-fugitive@5d11ff7
Solution: Move the existence check for the fugitive plugin into a
separate function and call it from there in all places that check the
fugitive plugin. Do the same for lawrencium and vcscommand check.
fixes #605 #1739
2018-06-04 17:38:49 +02:00
Christian Brabandt
08570b6dcb
doc: fix wrong double quote by single quote
2018-05-25 11:37:57 +02:00
Christian Brabandt
64e925d675
doc: document notexists symbol correctly
...
fixes #1729
2018-05-25 11:36:54 +02:00
Christian Brabandt
315cf0deec
Merge pull request #1724 from lubomir/fix-doc
...
Fix documentation for syntastic format of warnings
2018-05-20 19:53:25 +02:00
Christian Brabandt
02ffdfe0e5
Merge pull request #1722 from dkav/patch-1
...
Update README.md
2018-05-13 18:33:34 +02:00
Christian Brabandt
a7b84f5b67
doc: fix tag airline#ignore_bufadd_pat
2018-05-11 22:36:44 +02:00
Christian Brabandt
b84e13f1d7
Blacklist startify for [noperm]
...
Startify unfortunately does not set the buftype option, so the
`[noperm]` would be shown, since the buffer is not really a file.
(see mhinz/vim-startify#324 )
So allow to blacklist startify from this setting. To do so, the logic
from the tabline extension was refactored out into a separate function
that returns true, if the buffer matches
`g:airline#extensions#tabline#ignore_bufadd_pat` and that function is
then reused for the readonly() function as well.
2018-05-11 22:32:20 +02:00
Christian Brabandt
c7e05efb76
Only consider regular files for the '[noperm]'
...
Recently, NERDTree added the &readonly setting to its buffer.
Unfortunately, this caused airline to render the '[noperm]' string in
it.
Fix this by only making the readonly check for buffers that actually
represent files (e.g. the buftype option is empty).
2018-05-11 09:53:55 +02:00
Christian Brabandt
5a065e8b82
Merge pull request #1717 from iroedius/disable-trailing-check
...
allow to also disable trailing whitespace check per filetype
2018-04-28 09:16:32 +02:00
Christian Brabandt
33310c5b24
whitespace: Allow to disable individual whitespace checks per filetype
...
closes #1716
2018-04-27 08:25:49 +02:00
Christian Brabandt
3ad4a18d85
xtabline doc: mention required tabline setting
2018-04-17 07:37:56 +02:00
Christian Brabandt
a76f523be5
bufferline: always add a space for the very first item
...
closes #1631
2018-04-15 10:16:28 +02:00
Christian Brabandt
d9acbc53b0
Reset g_airline_gui_mode on setting termguicolors
...
fixes #1663 , should make sure that the separators are correctly
displayed even when setting 'termguicolors' later than expected.
2018-04-12 10:24:54 +02:00
Christian Brabandt
0df2c9b12e
Merge pull request #1700 from mox-mox/master
...
Add extension for vim-localsearch
2018-04-09 13:27:44 +02:00
Christian Brabandt
d66b507b02
Merge pull request #1683 from idbrii/add-custom-scm
...
Make branch detection customizable
2018-04-08 21:56:32 +02:00
Christian Brabandt
902921931e
Simplify airline#init#gui_mode()
...
remove all the old code that is probably not used anymore
2018-04-06 02:21:20 +02:00
Christian Brabandt
ae394294c3
gutentags: output correct statusline message
...
fixes #1703
2018-04-06 02:14:10 +02:00
Christian Brabandt
bf3cc5ad9d
NerdTree: make the statusline configurable
...
Use the g:NerdTreeStatusline variable for configuring the
NerdTree statusline in the NerdTree window
closes #1705
2018-04-06 01:52:23 +02:00
Christian Brabandt
47bdae9067
Merge pull request #1702 from mrmr1993/fix-buffer-counts
...
Fix buffer numbering to start from 1 with buffer_idx_mode
2018-04-03 03:16:38 +02:00
Christian Brabandt
2876715b56
Merge pull request #1704 from gf3/jsformatter-typescript
...
Support typescript in jsformatter
2018-04-03 03:16:19 +02:00
Christian Brabandt
2ba64a88fd
Merge pull request #1691 from silenc3r/master
...
ALE: add option to disable line numbers
2018-04-01 14:13:29 +02:00
Christian Brabandt
f0b969549a
Merge pull request #1693 from mrmr1993/current-tabs-visible-experiments
...
Rework tabline for tabs and buffers
2018-04-01 14:01:17 +02:00
Christian Brabandt
b9f55455fb
Revert "highlighter: Make the separators use a cterm background color"
...
This reverts commit e72a7e2c8d .
2018-03-20 15:30:02 +01:00
Christian Brabandt
d2ac3d5755
async: catch error when jobstart() fails
...
closes #1692
2018-03-20 14:01:46 +01:00
Christian Brabandt
e72a7e2c8d
highlighter: Make the separators use a cterm background color
...
should fix : #1663
2018-03-19 22:24:57 +01:00
Christian Brabandt
ecff00a559
tabline: do not show buffer label if show_buffers is zero
...
fixes #1689
2018-03-19 15:06:55 +01:00
Christian Brabandt
700c9b9740
tests: fix failing test
2018-03-15 22:09:02 +01:00
Christian Brabandt
fb85c0a91a
Merge pull request #1678 from mg979/buflist
...
Changed buflist.vim algorithm
2018-03-15 21:52:35 +01:00
Christian Brabandt
4237bfb052
branch: allow multibyte chars in shortening algorithm
...
previously, the branch extension used name[0:6], however that would
break with multibyte characters, since this is a byte index and not a
character index.
fixes #1686
2018-03-14 21:33:25 +01:00
Christian Brabandt
958f78335e
help: remove duplicate tag airline-bufferline
...
fixes #1681
2018-03-06 15:32:25 +01:00
Christian Brabandt
167602d5b9
tabline: get correct buffer name
...
When the uniq_tail formatter is used, the buffer name is not refreshed
when running through the duplicates. Fix that by getting the correct
buffer name again.
fixes #1680
2018-03-06 11:23:38 +01:00
Christian Brabandt
78c4438469
Merge pull request #1677 from Cimbali/master
...
Disable fugitiveline if bufferline is activated
2018-03-06 09:22:09 +01:00
Christian Brabandt
55a9721c22
Merge pull request #1651 from srini-x/master
...
Changing 'airline_tablabel' text and colors back to old style
2018-02-14 09:49:31 +01:00
Christian Brabandt
85696f28a9
Merge pull request #1649 from CherryMan/master
...
tabline: fix tabline on :syn on
2018-02-10 20:50:58 +01:00
Christian Brabandt
e4968d7a40
Merge pull request #1660 from erfanio/fix_buffer_tabline
...
Fix white space in tabline when showing buffers
2018-02-10 20:49:47 +01:00
Christian Brabandt
c2ffb8b3ec
Merge pull request #1643 from ThomasFaivre/quickfix
...
quickfix: fix options initialization
2018-01-21 09:55:23 +01:00
Christian Brabandt
eb58badee2
Merge pull request #1647 from ThomasFaivre/get_mode
...
cursormode: allow custom mode names
2018-01-21 09:53:21 +01:00
Christian Brabandt
b7d3feb4d2
tabline: correctly refresh on :syn commands
...
fixes #1590 and #1638
2018-01-10 08:41:04 +01:00
Christian Brabandt
a3bdb10aea
Merge pull request #1634 from Cimbali/master
...
Fix over-caching of paths
2018-01-15 08:02:09 +01:00
Christian Brabandt
927c910af1
doc: Document, that the fugitive extension is needed
2018-01-10 08:14:48 +01:00
Christian Brabandt
9a2ed35ff9
tabline: do not confuse Vim
...
looks like this:
```
let a=(condition ? s:var:'')
```
confuses older Vims and it complains about a missing colon. So make
parsing a bit easier and add a space in front of the second colon.
fixes #1629
2018-01-08 13:46:08 +01:00
Christian Brabandt
02816a3cb6
tabline: missing spaces
...
commit ab49a1c7ae changed that no leading whitespace was added.
While this removed a double space in front of the current active
selected buffer, it removed one space too much for the non-current
buffers in the bufferline.
So partly reverse it and only add the space, if the highlighting groups
between each item did not change.
2018-01-08 09:48:36 +01:00
Christian Brabandt
182675dc10
tabline: revert default buffer_idx_mode
...
commit 2e3cdeb unintentionally changed the default for the
buffer_idx_mode in the tabline.
Revert it back to be disabled by default
fixes #1628
2018-01-07 09:51:08 +01:00
Christian Brabandt
ab49a1c7ae
tabline: do not add extra space before buffer name
...
there was a space too much added in the tabline. Fix that
2018-01-05 22:13:47 +01:00
Christian Brabandt
5db4c408bd
Update copyright notifications
2018-01-05 10:37:59 +01:00
Christian Brabandt
6c4f3277f1
Add missing scriptencoding
2018-01-05 10:26:38 +01:00
Christian Brabandt
6cdcaf13b1
cursormode: disable by default
...
fixes #1625
2018-01-05 08:12:35 +01:00
Christian Brabandt
3a2323feac
branch: shorten default master for smaller windows
2018-01-05 08:12:10 +01:00
Christian Brabandt
c76019ac9e
Safety: Make sure g:airline_theme is defined before using it
...
fixes #1624
2018-01-04 23:54:12 +01:00
Christian Brabandt
a90ac37cb3
Changelog: slightly reorded items
2018-01-04 23:37:10 +01:00
Christian Brabandt
2ef81d4140
Changelog: Add links to the issues
2018-01-04 23:33:30 +01:00
Christian Brabandt
3b5f2bd470
async: Todo: Check if cwd option for Vim 8 is needed
2018-01-04 23:29:15 +01:00
Christian Brabandt
88130fd377
Updated Changelog
2018-01-04 23:27:05 +01:00
Christian Brabandt
c17ad9a123
Merge pull request #1426 from lynnard/master
...
Fix problems with AirlineSelect{Prev,Next}Tab
2018-01-04 21:15:00 +01:00
Christian Brabandt
73d8abff2f
Merge pull request #1617 from kyleholzinger/master
...
Add formatter for js files
2018-01-04 21:14:00 +01:00
Christian Brabandt
4d0233ebdb
plugin: correctly re-init on :syn-enable
...
should fix #1590 correctly
2018-01-04 21:09:26 +01:00
Christian Brabandt
d283a25e3f
tabline: only show buffer label, if they were drawn
...
closes #1558
2018-01-04 20:56:09 +01:00
Christian Brabandt
ce83c39bed
tabline: allow custom formatter for tabnr_type
...
closes #1418
2018-01-04 20:41:55 +01:00
Christian Brabandt
133a76d2d4
plugin: reset syntax highlighting on :syn off
...
hopefully fixes #1590
2018-01-04 20:07:15 +01:00
Christian Brabandt
c518f79aab
tabline: allow to show buffers label at start
2018-01-04 19:38:07 +01:00
Christian Brabandt
9d28f0dcc7
tabline: allow to show current buffer/tab at first position
...
This will make highlighting more consistent. Always first item is the
one where the cursor is.
2018-01-04 19:32:29 +01:00
Christian Brabandt
30652c05c4
tabline: correct order of tab/buffer labels
2018-01-04 19:09:02 +01:00
Christian Brabandt
90cf752c90
tabline: add separate highlight group for labels
2018-01-04 18:57:28 +01:00
Christian Brabandt
3b631ef0c4
tabline: refactor label function
2018-01-04 18:43:03 +01:00
Christian Brabandt
3985ece131
tabline: add [buffers]/[tabs] labels consistently
...
previously, when both tabs and buffers were displayed in the tabline, it
was not immediately obvious which side belongs to a buffer and which one
to a tab. Therefore, add [buffers]/[tabs] labels consistently.
2018-01-04 18:34:48 +01:00
Christian Brabandt
45878a7947
tabline: remove l: prefix of function variables
2018-01-04 18:29:51 +01:00
Christian Brabandt
503b9977fb
tabline: refactor s:variables
2018-01-04 18:20:25 +01:00
Christian Brabandt
69aa1e93b3
tabline: add more try/catch for mappings
...
similar to 2e3cdeb808 add a couple of more try catch statements
around the map_keys() function
2018-01-04 18:15:40 +01:00
Christian Brabandt
645f65d8d9
ctrlspace: wrong separator
...
under certains circumstances it could happen that for the vim-ctrlspace
tabline extension a tabline group was redefined which would cause a
separator having foreground and background color swapped. This was
caused by using the 'pos' parameter for the right side wrongly.
fixes #1559
2018-01-04 18:07:03 +01:00
Christian Brabandt
45236ba7c7
ctrlspace: refactor s:variables
2018-01-04 17:27:34 +01:00
Christian Brabandt
a25757ac64
tabline: Allow an alternate style for bufferlist
...
fixes #1608
2018-01-04 15:45:36 +01:00
Christian Brabandt
d78f686ce5
tabline: remove some more s:vars
2018-01-04 14:35:10 +01:00
Christian Brabandt
6ba65b2c8c
tabline: remove s:show_tab_type variable
2018-01-04 14:30:16 +01:00
Christian Brabandt
708c76e22c
tabline: do not cache s:buffer_idx_mode
2018-01-04 14:23:50 +01:00
Christian Brabandt
d03c3fa7b9
tabline: remove l: variable prefix
2018-01-04 14:20:36 +01:00
Christian Brabandt
72e457d8c2
tabline: remove static caching of s:vars
...
rather let them be defined whenever they are needed. They were only used
inside a single function anyhow, so it does not make sense to cache
them. In addition, having the user later change the variable won't work
as expected.
2018-01-04 14:11:13 +01:00
Christian Brabandt
2e3cdeb808
tabline: try/catch mapping of the keys
...
fixes #1621
2018-01-04 14:11:11 +01:00
Christian Brabandt
c386332570
Merge pull request #1619 from tracyone/doc
...
doc: update ctrlp.vim url
2017-12-28 11:20:23 +01:00
Christian Brabandt
125d3443e4
Merge pull request #1620 from Cimbali/master
...
Cache file names in fugitiveline extension
2017-12-28 11:20:05 +01:00
Christian Brabandt
bc985301db
Merge pull request #1603 from Cimbali/master
...
Improve fugitive integration
2017-12-21 09:09:44 +01:00
Christian Brabandt
6c8d0f5e6a
Merge pull request #1605 from EdwardBetts/patch-2
...
Correct spelling mistake.
2017-11-27 09:27:58 +01:00
Christian Brabandt
77ab703a55
Merge pull request #1604 from EdwardBetts/patch-1
...
Correct spelling mistake.
2017-11-27 09:27:40 +01:00
Christian Brabandt
3e13bab201
Merge pull request #1600 from PratikBhusal/patch-1
...
Add function to show line number
2017-11-20 13:58:21 +01:00
Christian Brabandt
d719d0664a
Merge pull request #1602 from jreybert/dev/vimagit
...
vimagit: let vimagit itself returns the current mode
2017-11-20 13:57:42 +01:00
Christian Brabandt
4a1f65841c
README: mention how to use pack feature for install
...
fixes #1594
2017-11-15 08:06:17 +01:00
Christian Brabandt
1f84ad886c
README: still some problems
2017-11-15 07:58:22 +01:00
Christian Brabandt
c88dca5c96
README: still some problems with the table
...
(I hate markdown)
2017-11-15 07:54:50 +01:00
Christian Brabandt
dd368b3e31
README: one more fix for the table
2017-11-15 07:51:48 +01:00
Christian Brabandt
20a6fe2b9f
README: Fix table
2017-11-14 23:44:52 +01:00
Christian Brabandt
f3aae5f72b
README: show a screenshot and document what this plugin does
...
fixes #1589
2017-11-14 23:43:04 +01:00
Christian Brabandt
52ce640534
startup: remove workaround for skipping redraw
...
commit 7d082c03b2 added a workaround to skip
a few redraws on startup so that the intro message is not shown anymore.
However might cause problems, that some highlighting groups are not
correctly set. Also recent Vims (8.0.1290 and so on) do not seem to
suffer from the problem that an too early initializiation of airline
causes a redraw which skips the intro message.
Therefore, revert that commit.
Fixes #1585
2017-11-14 23:38:32 +01:00
Christian Brabandt
396cc92261
Merge pull request #1578 from ompugao/tabline_collapse_fname
...
collapse fname in tabline when using unique_tail formatter
2017-11-06 08:19:04 +01:00
Christian Brabandt
a1b7479b54
Merge pull request #1584 from Taikuh/wordcount_format
...
Add option to change wordcount display for the default formatter
2017-10-25 21:27:23 +02:00
Christian Brabandt
e72ec51e59
Merge pull request #1582 from 0x6a62/doc-typo
...
Fix typo
2017-10-23 08:57:57 +02:00
Christian Brabandt
6e2a9e38cd
tabline: force redraw on BufAdd autocommands
...
closes #1580
2017-10-19 11:37:24 +02:00
Christian Brabandt
a5d9a4bcb2
Merge pull request #1577 from ompugao/skip_toggling_ctrlspace_if_not_installed
...
skip toggling ctrlspace tabline plugin when not installed
2017-10-16 10:57:20 +02:00
Christian Brabandt
27acd851a7
cleanup term extension
2017-09-27 20:28:18 +02:00