Commit Graph

1770 Commits

Author SHA1 Message Date
Christian Brabandt
b6d6485a90
Merge pull request #2176 from konafx/master
Add fern.vim support
2020-07-14 16:10:21 +02:00
konafx
a7716dec4d
Add extension for fern.vim 2020-07-14 22:54:55 +09:00
Christian Brabandt
f655add4e9
hunks: do not add trailing whitespace when branch extension is disabled
fixes #2177
2020-07-14 14:03:17 +02:00
skeept
c4ee72f2d9
don't rely on NR for checking that NrrRgn is loaded
This fixes issue when using Plug to conditionally loading NrrRgn:

Plug 'chrisbra/NrrwRgn', {'on': ['NR', 'NW', 'NRV', 'NW', 'NarrowRegion']}

The command will exist but the plugin has not been loaded yet which gives a warning message.
2020-07-09 11:16:23 -05:00
Christian Brabandt
768bd0f5c6
Merge pull request #2158 from larrybradley/fix-venv
Fix handling of virtualenv and poetv plugins
2020-07-09 08:42:32 +02:00
Rick Jones
46c35b80a1 Make appending airline_right_alt_sep conditional on it not being empty (wordcount)
Was appending a redundant space when airline_right_alt_sep was empty.
2020-07-08 23:46:00 +01:00
Rick Jones
ee4afdeedb Dynamically resize section Z
Resolves: #2168
2020-07-08 23:46:00 +01:00
Christian Brabandt
0a0d61af6c
fzf: do not check for loaded fzf
closes #2163
2020-07-08 08:47:59 +02:00
nickspoons
fab4a02838 Add OmniSharp extension to display server status 2020-07-08 16:32:07 +12:00
Christian Brabandt
ba9b3e1839
Merge pull request #2161 from kazukazuinaina/add_support_searchcount
[RFC] Add support for searchcount extension
2020-06-29 09:25:56 +02:00
wzy
b96e02c649
Fix bug of keyboard_layout
when `keyboard_layout==''`, `let keyboard_layout = split(keyboard_layout, '\.')[-1]` will return an error.
2020-06-29 13:44:13 +08:00
kazukazuinaina
2d9e88794d delete redrawstatus
This is unnecessary. Removing it will still work properly and improve performance.
2020-06-28 06:37:29 +09:00
kazukazuinaina
2c45d3c1aa [add] support fot searchcount extension 2020-06-28 05:57:55 +09:00
IK
d0aaa061c2
Merge pull request #2157 from kazukazuinaina/add_terminalMode_color_palette
[add] terminal mode's color palette
2020-06-26 17:55:02 +09:00
kazukazuinaina
476bba726c [add] terminal mode's color palette
Neovim returns a has('terminal') of 0.
Therefore, this conditional branch is not needed.
2020-06-25 00:33:27 +09:00
Christian Brabandt
bc8fdfe946
terminal: correctly shorten terminal tabline
If there is a single terminal window in  the current tabpage, the whole
long command will be displayed in the tabline, even when it should be
shortened by default.

By default the title will not be shown if there are several windows in
the current tabpage, but if there is only one single terminal window, it
will still be shown (and might be a bit long). But I guess, it is better
to just show a possible too long terminal window name, than not show
anything).

fixes #2126
2020-06-21 22:31:43 +02:00
Larry Bradley
e352adda69 Fix handling of virtualenv and poetv plugins 2020-06-19 11:07:06 -04:00
Christian Brabandt
5ce3e63658
Merge pull request #2146 from noisysocks/master
Support fzf and fzf.vim
2020-06-19 11:45:34 +02:00
kazukazuinaina
cc6d3a7df1 [update] wordcount's formatter's license year 2020-06-19 03:28:21 +09:00
Robert Anderson
88894aa0ad Support fzf and fzf.vim
Adds a slightly nicer statusline for the terminal buffers created by the
fzf and fzf.vim plugins.

https://github.com/junegunn/fzf
https://github.com/junegunn/fzf.vim
2020-06-13 10:31:29 +10:00
kazukazuinaina
fab1ee3117 [update] license's year in airline's extension 2020-06-11 05:26:04 +09:00
PratikBhusal
de76234a0e vim-dirvish: Fixed bugs and added better include guards
Fixes issue #2142.

These changes primarily focused on making the include guards more robust
and simplify how the path for w:airline_section_c was generated.
Credits goes to @kazukazuinaina for improving on my original
implementation.
2020-05-30 00:25:56 -05:00
Christian Brabandt
0de31196b6
Merge pull request #2139 from PratikBhusal/master
Add vim-dirvish support
2020-05-29 23:12:46 +02:00
kazukazuinaina
b929452f32 [add] unite and denite's config
[add] document
2020-05-29 18:20:01 +09:00
PratikBhusal
e0838c704a Added vim-dirvish support
Matched VCS format of Netrw to only show branch name.
Filetype hidden as it is a duplicate on the left side.
File encoding hidden as it does not matter in dirvish buffer.
Removed unnecessary current column information
2020-05-25 19:34:52 -05:00
kazukazuinaina
a133605d01 [refactor] vimagit's extension 2020-05-21 15:19:25 +09:00
kazukazuinaina
68024ec33d fix missing endif 2020-05-21 01:26:33 +09:00
Christian Brabandt
aa46603214
Merge pull request #2128 from jolan78/master
fix for #2127
2020-05-04 14:19:44 +02:00
kazukazuinaina
1f1a71ae2b abopt get() function 2020-05-04 17:53:13 +09:00
jolan78
3b46a4d9a3
fix for #2127 2020-05-04 10:07:39 +02:00
Shaine Hatch
62e7fc6ab1
Use disabled style for inactive tabs 2020-04-30 12:13:55 -06:00
Christian Brabandt
96d37d2fbe
hunks: fix missing line continue character 2020-04-29 17:17:58 +02:00
Christian Brabandt
48064e24d5
hunks: only enable coc-git extension, if explicitly enabled by the user
As requested by the coc maintainer, this is explicitly disabled, unless
the user configures vim-airline to use it for the branch extension. This
is done, because the `CocAction('extensionStats')` function is known to
be slow and this may cause a slow startup.
2020-04-29 16:59:37 +02:00
kazukazuinaina
ad3132da33 [add] vaffle's path section 2020-04-29 21:37:36 +09:00
Christian Brabandt
f00a9e6e7a
Merge pull request #2119 from kazukazuinaina/update_coc_status_width
[adjust] coc_status's width
2020-04-20 07:57:16 +02:00
Christian Brabandt
76c1998753
extensions: prevent error about unknown function for ycm
if g:loaded_youcompleteme does not exists, the ycm extension will not be
loaded. However extensions.vim could still try to init the ycm
extension, which would lead to an error message:

  E117: unknown function airline#extensions#ycm#init

so make sure, it is only loaded, if ycm is loaded as well.
2020-04-20 07:54:00 +02:00
kazukazuinaina
379e0f5bc2 [adjust] coc_status's width 2020-04-18 17:48:26 +09:00
Christian Brabandt
c8fe296c52
Merge pull request #2117 from kazukazuinaina/update_ycm_extension
[add] ycm's toggle and doc
2020-04-17 09:40:05 +02:00
kazukazuinaina
15a1a3ccc7 [add] ycm's toggle and doc 2020-04-15 12:08:09 +09:00
kazukazuinaina
37273299f7 [add] cursormode's toggle 2020-04-15 11:45:45 +09:00
Christian Brabandt
7c31850381
wordcount: only test against complete filetypes
Put a word-boundary regex atom before and after the current filetype, to
make sure that a `C` filetype won't be detected as a filetype that
enables the wordcount extension. (`c` matches asciidoc).
2020-04-14 19:53:18 +02:00
troydm
487d21e7ff
zoomwintab extension vint fix 2020-04-07 21:50:23 +03:00
troydm
5902a23e78
zoomwintab extension added 2020-04-07 21:33:28 +03:00
Christian Brabandt
adf2afae7c
hunks: still some problems with coc-git integration
Fix remaining problems, test correctly for enabled coc-git plugin.
2020-04-01 10:49:00 +02:00
Christian Brabandt
29eec37c66
tabline: fix typo
related: #2103
2020-03-30 08:27:20 +02:00
Christian Brabandt
74ca43a9b6
[hunks] also cache coc git status 2020-03-29 19:37:44 +02:00
Christian Brabandt
5a490dd9ac
hunks: remove test for empty branch for changes plugin
Because changes plugin does not rely on git
Also remove the test of the local variable for the changes plugin
whether it is enabled or not, this is taken care of in the changes
plugin
2020-03-29 19:37:44 +02:00
kazukazuinaina
185bcc5e88 [add] new option / always show tab count feature 2020-03-30 01:06:06 +09:00
Christian Brabandt
c05fff8504
hunks: add abort keyword to function definitions 2020-03-29 17:30:29 +02:00
Christian Brabandt
a13bed2f51
hunks: integrate coc-git extension
The coc-git extension to coc does show similar statistics as e.g.
gitgutter, therefore, integrate the coc-git interface into the hunk
extension.

closes #2094
2020-03-29 17:30:29 +02:00
Christian Brabandt
2f2003be52
Merge pull request #2098 from kazukazuinaina/add_check_vista_toggle
[add] check vista's toggle
2020-03-29 16:04:35 +02:00
Christian Brabandt
8a7172e1c2
Merge pull request #2099 from kazukazuinaina/fix_denite_extension
[fix] operator and [add] abort in autoload function
2020-03-29 16:04:08 +02:00
Christian Brabandt
99c2dfd569
coc: use bold accent for g:coc_status
fixes #2101
2020-03-29 16:03:00 +02:00
kazukazuinaina
f8a3afa4a1 [fix] operator and [add] abort in autoload function 2020-03-29 00:45:32 +09:00
kazukazuinaina
e671a68b48 [add] check vista's toggle 2020-03-28 18:15:29 +09:00
Christian Brabandt
0278e9095d
Merge pull request #2093 from kazukazuinaina/add_wordcount_filetype
add plaintex filetype
2020-03-23 11:39:20 +01:00
kazukazuinaina
16223d0bc3 add plaintex filetype
re-order and update document
2020-03-20 22:41:50 +09:00
Christian Brabandt
119477060d
Merge pull request #2090 from Freed-Wu/master
Add g:airline#extensions#capslock#sign
2020-03-20 14:13:56 +01:00
Freed-Wu
254d1a2d8d Add g:airline#extensions#capslock#symbol
Add help

Add linebreak and default
2020-03-20 11:02:34 +08:00
kazukazuinaina
b2cd5baa24 [add] gina.vim's url 2020-03-15 20:05:22 +09:00
ckipp01
fe94d52c4c
coc: add in coc_status to coc.nvim integration
Allow to show additional messages from coc.nvim in section_c

For ease of use, shorten the message for windows smaller than 81
characters.

closes #2079
2020-03-02 13:16:37 +01:00
Christian Brabandt
fdafa44b2f
Merge pull request #2068 from fx-carton/master
Add support for vim-lsp
2020-03-02 13:05:19 +01:00
Christian Brabandt
418fb24982
Merge pull request #2083 from kazukazuinaina/add_check_ale_extension_toggle
[add] check ale's toggle
2020-03-02 13:04:25 +01:00
Serge Y. Stroobandt
3b339fee98
wordcount: Word count for the combined file types
[Pandoc flavoured Markdown](https://en.wikipedia.org/wiki/Markdown#CommonMark) has its [own file type in `vim`](https://github.com/vim-pandoc/vim-pandoc-syntax#standalone), namely `markdown.pandoc`.
Word count by default in `vim-airline` obviously would make a lot of sense for this popular file type.

Fix this, by making sure that the wordcount extensions will apply
correctly if any of the combined filetypes (e.g. either pandoc or
markdwon) matches the list of allowed filetypes.
2020-03-02 13:03:21 +01:00
François-Xavier Carton
0860036454 Add support for vim-lsp 2020-03-01 00:41:33 +01:00
kazukazuinaina
9e3a0626bf [add] check ale's toggle 2020-02-29 01:31:39 +09:00
kazukazuinaina
6115527e7e [fix] conut variable's scope 2020-02-28 17:14:45 +09:00
Christian Brabandt
774cd8b08f
term: better formatting of neovim terminal
closes #2074
2020-02-27 13:37:50 +01:00
Christian Brabandt
bc19a18b3c
Merge pull request #2070 from idbrii/focuslost_inactive_focusgained_ignore
Ignore FocusGained events for the current second
2020-02-27 13:17:27 +01:00
David Briscoe
c2ff76829f Ignore FocusGained events for the current second
Fix #2062: restore g:airline_focuslost_inactive behaviour.

Only ignore focusgained events on Windows. If there are more problematic
platforms, we'll add them later.

Instead of ignoring the next x FocusGained events whenever we do call
system(), ignore them for the current second. That allows us to put a
hard limit on the duration of the ignore.

This seems like a much better solution than the previous one because it
also prevents ignore events from building up (s:focusgained_ignored was
often greater than 5).

Test (gvim 8.2.140 on Win10)
gvim.exe ~/.vim/bundle/airline/autoload/airline/extensions/branch.vim
:Gedit HEAD
check several parents and no regression of looping behaviour from #2053.

:let g:airline_focuslost_inactive = 1
:split
alt-tab several times and statusline is correctly dimmed and restored
each time.
2020-02-21 09:21:47 -08:00
Christian Brabandt
0b26834648
Merge pull request #2069 from kazukazuinaina/gina_refactoring
[update] gina's extensions
2020-02-21 09:07:35 +01:00
kazukazuinaina
fc09bf751a [update] gina's extensions in extensions dir
fix typo and add section_b

[add] extension gina

[add] unstaged extensions

[fix] typo

[Done] gina refactoring

[fix] document

[fix] gina's spell

[add] abort
2020-02-17 22:43:07 +09:00
Johannes Wienke
5c1f3b426b Always obey the poetv#enabled setting
Do not silently enable an extension even though the `enabled` setting is false.

This would resolve #2058
2020-02-01 22:01:00 +01:00
Christian Brabandt
f659a98d50
completion: only return random theme, when it actually matches 2020-01-30 13:42:21 +01:00
David Briscoe
dd247a0f85 branch: ignore upcoming FocusGained when updating
closes #2029

airline#util#focusgain(1) was called too soon -- it's called before vim
loses focus and not after it gains focus. Instead, we ignore the next
FocusGained event.
2020-01-28 12:01:09 -08:00
Christian Brabandt
8fbb16f838
async: correctly use &shell and &shellcmdflag
instead of hardcoding to use 'sh' and '-c'
2020-01-28 16:04:53 +01:00
Christian Brabandt
a201689e38
async: correctly redirect error on powershell 2020-01-28 16:01:52 +01:00
Christian Brabandt
2e9d36e220
async: problem with powershell
also check for the powershell on windows.

closes #2050
2020-01-28 16:00:02 +01:00
Christian Brabandt
c3cda92272
Merge pull request #2049 from kazukazuinaina/fix_echo_extension_load
Fix echo extension load
2020-01-28 15:58:00 +01:00
Christian Brabandt
f4795532c6
branch: disable FocusGained handler when updating fugitive information
closes #2029
2020-01-28 15:54:53 +01:00
kazukazuinaina
70c91d70c5 [fix] can display loaded extension in g:airline_extensions
[fix] continue check
2020-01-27 07:11:24 +09:00
David Lukes
ce45960049 Suggest fix for #2045 2020-01-24 12:46:07 +01:00
Christian Brabandt
1240403ce5
highlighter: fix obvious spelling error 2020-01-20 12:32:06 +01:00
Christian Brabandt
a676af7c8a
highlighter: check for accents key
This is actually a work around for a broken installation. the dict p
should always contain the accents key (see `airline#themes#patch()`
function, that adds missing accents). So even if the theme does not
define the accents key, it should always exist.

However, an error while evaluating the statusline is extremely annoying,
so add some safeguards here and skip the following for loop.

related #2043
2020-01-20 12:28:04 +01:00
kazukazuinaina
f0317f6dd4 update preview in extensions.vim 2020-01-12 01:27:24 +09:00
kazukazuinaina
cf6dcf5e19 update license's year in vim-airline 2020-01-06 11:22:49 +09:00
petobens
98f03df8e5 Add poetv extension 2019-12-30 10:37:03 -03:00
Jonathan Feinberg
892c9ad6b5
Adding option: buffers#buffer_idx_mode = 3
By using `buffer_idx_mode = 3`, indexing will start at 1, instead of 11.
2019-12-27 13:00:50 +01:00
Christian Brabandt
5a87ca631a
Merge pull request #2027 from midchildan/feat-buffer-disable
allow disabling airline per-buffer
2019-12-27 08:47:45 +01:00
Christian Brabandt
c6283b5185
Merge pull request #2026 from midchildan/fix-airline-inactive
fix missing check for w:airline_disable_statusline
2019-12-27 08:47:20 +01:00
kazukazuinaina
61bcec3b57 add vaffle extension 2019-12-26 17:03:15 +09:00
midchildan
9779a7a340
allow disabling airline per-buffer 2019-12-22 21:26:59 +09:00
midchildan
bc0e2a3438
fix missing check for w:airline_disable_statusline 2019-12-22 20:06:35 +09:00
kazukazuinaina
be85daa23f fix untrack branch check about gina 2019-12-19 15:43:50 +09:00
kazukazuinaina
44b1e3df5d can choice to use gina's extension
fix typo

add v:version >= 800and remove v:version > 704

fix CI error
2019-12-18 00:44:47 +09:00
Christian Brabandt
929cf2e21f
Merge pull request #2021 from kazukazuinaina/add_try_catch_in_gina_branch
add try catch in gina.vim's extension in branch.vim
2019-12-15 16:19:51 +01:00
kazukazuinaina
d4e2bfe892 add try catch in gina.vim's extension in branch.vim 2019-12-15 23:08:31 +09:00
kazukazuinaina
60aaed01ae fix typo in tabline.vim 2019-12-15 21:28:51 +09:00
kazukazuinaina
f8e1f85fde add gina support for vim-airline's branch
add check gina in util.vim

fix typo

add gina check

fix typo

add gina.vim's url in doc

fix typo

delete v:version > 800

fix error
2019-12-14 04:10:46 +09:00
Christian Brabandt
5f9ae83f44
config: allow to disable setting the statusline option
closes #2013
2019-12-13 09:59:45 +01:00
Christian Brabandt
e395afed51
vista: init extension on VimEnter
closes #2009
2019-12-13 08:56:26 +01:00
Christian Brabandt
30725e6eb2
Merge pull request #2010 from kazukazuinaina/add_gina_new_extension
add gina's some extensions
2019-12-13 08:45:36 +01:00
Christian Brabandt
9c3f84fc67
tabline: skip expansive BufAdd call on Session load
closes #2015
2019-12-13 08:44:15 +01:00
Christian Brabandt
758c83acbf
tabline: simplify autocommand condition 2019-12-12 09:58:21 +01:00
Christian Brabandt
58b9b3ec81
netrw: do not error out when g:netrw_sort_by is not defined 2019-12-11 23:36:15 +01:00
Christian Brabandt
c24f3c7c4d
whitespace: do not detect '=======' as conflict marker for rst files
closes #2014
2019-12-10 16:14:08 +01:00
kazukazuinaina
b1ca153b72 add gina's some extensions
add gina-ls
2019-12-06 17:26:08 +09:00
kazukazuinaina
806f071348 add :Gina branch command support 2019-12-02 11:54:38 +09:00
Christian Brabandt
ce932f3825
Revert "themes: drop simple colorscheme - theme mappings"
This reverts commit 47be64d7f2.

closes #2006
2019-11-29 08:27:13 +01:00
Christian Brabandt
47be64d7f2
themes: drop simple colorscheme - theme mappings
vim-airline by default already tries to load theme names, that have the
same name as the colorscheme. Therefore, it does not make sense, to add
mappings that result in the same theme name.

So drop the base16, wombat, zenburn and solarized keys
2019-11-27 13:52:21 +01:00
kazukazuinaina
17ec87f503 substitute/NERDtree/NERDTree 2019-11-15 15:50:36 +09:00
kazukazuinaina
8a3eeddc80 update nerdtree's statusline
add let g:airline#extensions#nerdtree_statusline's documentation
2019-11-11 21:11:36 +09:00
Christian Brabandt
664426be21
doc: mention all supported plugins
Also, in the extensions mention the required vim plugin
2019-11-08 20:18:04 +01:00
Christian Brabandt
5b9cbc1a57
ctrlspace: cleanup s:var usage 2019-11-08 19:58:22 +01:00
kazukazuinaina
073d760689 add fugitive statusline 2019-11-10 09:47:43 +09:00
Christian Brabandt
f2241b61b2
bufferline: get rid of static s: variable 2019-11-05 11:32:10 +01:00
Christian Brabandt
a0e9b383c6
tabline: add buffer number to unique_tail formmater
fixes #1987
2019-10-25 17:20:34 +02:00
kazukazuinaina
62ec219601
gina: Enable gina.vim, only for Vim > 7.4.1898
gina.vim needs the `<mods>` feature to work correctly. Therefore check
that Vim has at least patch 7.4.1898 included before using and accessing
the gina plugin.

fixes #1984
2019-10-24 12:57:33 +02:00
Christian Brabandt
6d665580a3
term: allow to disable the term extension
closes #1981
2019-10-16 18:07:35 +02:00
kazukazuinaina
62f2dc02f0
Add support for gina.vim
add gina-tag command

add help about gina.vim

update CHANGELOG.md

closes #1979
2019-10-02 15:17:26 +02:00
Christian Brabandt
262fdc20d5
wordcount: use the short format for widths <= 85
Previously it used a width of >= 80 to display the long word count
format. However I personally found that a bit too wide, while other
sections will be shortened too much which does not really look nice.

Therefore, adjust the limit a bit, using the short word count format for
windows up to 85 characters.
2019-10-02 14:50:55 +02:00
Félix Léger
f4f9a8a241
Modified dark.vim commandline foreground color
The foreground color for `commandline` mode is the same as `normal` mode, which is easier to read against the green background
2019-09-11 15:25:52 -04:00
Christian Brabandt
63d8764f9d
po: do not shorten empty fuzzy/untranslated messages 2019-09-09 09:39:41 +02:00
Christian Brabandt
6409c7b317
tabline: do not display neovim terminal there 2019-08-26 15:16:38 +02:00
Christian Brabandt
22f54d8528
sort airline#extensions#tabline#ignore_bufadd_pat 2019-08-26 15:14:21 +02:00
Christian Brabandt
018688a90f
tabline: do not show defx buffers
fixes #1962
2019-08-26 15:11:50 +02:00
Christian Brabandt
d848de4918
branch: remove double '.' for string concatenation
fixes #1961
2019-08-22 07:56:51 +02:00
Christian Brabandt
57fb980df7
util: micro-optimization of existence check for vcscommand plugin 2019-08-20 22:30:20 +02:00
Christian Brabandt
5df9e23f14
util: micro-optimization of existence check for lawrencium 2019-08-20 22:28:49 +02:00
Christian Brabandt
0370a3b89b
util: micro-optimization of existence check for fugitive 2019-08-20 22:28:49 +02:00
Christian Brabandt
51e74f1d1f
util: micro-optimization of existence check for strcharpart() 2019-08-20 22:22:19 +02:00
Christian Brabandt
ccef93e887
util: micro-optimization of existence check for strchars() 2019-08-20 22:20:39 +02:00
Christian Brabandt
15322e41c7
util: Add comment header, declaring s:vars as constant 2019-08-20 22:19:48 +02:00
Christian Brabandt
486b68cb08
term: get rid of useless variable, add comment 2019-08-20 22:12:34 +02:00
Christian Brabandt
af96e9745f
wordcount: only try to access buffer content in the actual current buffer
closes #1955
(this actually needs Vim patch 8.1.1372 to work properly)
2019-08-20 14:28:54 +02:00
Kai Moschcau
3f82d3a975
Improve multibyte character handling in branch ext
This fixes a bug that causes a mangled statusline. The bug occurs, when
the `displayed_head_limit` variable is set and causes the substring
expression to take a substring, which ends in the middle of a multi-byte
character.

This patch replaces the byte-based methods for measuring the
length of the branch name and creating a substring with methods that are
character-based and multi-byte aware.

It also has the nice side effect of making the length measuring more
accurate, by taking the actual display width of multi-byte characters
and the ambiwidth setting into account.

Since we need to take into account older Vim 7.4 (which might not have
the strcharpart() function), do introduce a compatibility wrapper in
airline#util that checks for the existence of the function before using
it. Older Vims will keep on using the byte-based index. I suppose Vim
7.4 before the strcharpart() function was available (patch 7.4.1730)
shouldn't be in use anymore.

closes #1948
2019-08-20 14:21:10 +02:00
Christian Brabandt
0f375addd2
term: differentiate different term modes
closes #1958
closes #1957
2019-08-20 14:01:09 +02:00
Liu, Joey
67a97c1ea0 add neoterm support
it shows neoterm_id on a inactive neoterm window
2019-08-02 13:23:42 -04:00
s1341
3f7222e488
Add support for vim-tabws tabline
closes #1938
2019-07-23 09:40:18 +02:00
shmaryar
28dcb68bf3
Add vista.vim (https://github.com/liuchengxu/vista.vim) integration 2019-07-23 09:38:14 +02:00
Christian Brabandt
2db9b27e39
async: Better fix for #1936
fix #1936 in a different way
2019-06-14 10:30:05 +02:00
Christian Brabandt
71c80aaf54
async: Check existence of buffer before accessing it
fixes #1936
2019-06-14 09:40:30 +02:00
Christian Brabandt
63a75aca2a
term: Make terminal extension work on entering it
does not work with Neovim since TermOpen is not used (see #1828 for the
bug)
2019-06-12 11:36:47 +02:00
Christian Brabandt
28453d7038
Support Multiple Cursor mode
Detect the use of plugin https://github.com/mg979/vim-visual-multi
and show mode "MULTI" when it is active.

closes #1933
2019-06-11 09:48:08 +02:00
Christian Brabandt
3921bc13a3
async: do not clean up job dir for running jobs
closed #1929
2019-06-03 08:22:39 +02:00
Christian Brabandt
4a1ac56286
Define coc functions as empty by default
fixes #1926
2019-05-29 21:04:32 +02:00
Peng Guanwen
b3ecf49f86 Coc integration 2019-05-29 21:20:20 +08:00
Christian Brabandt
193e350440
Check existence of variable before trying to set it
closes #1924
2019-05-24 08:14:25 +02:00
petobens
f07889c266 Extend denite statusline to denite-filter buffer
Closes https://github.com/vim-airline/vim-airline/issues/1920
2019-05-22 10:33:03 -03:00
Christian Brabandt
7b20361baf
denite: correctly test denite version
references #1918
2019-05-14 16:31:52 +02:00
kazukazuinaina
03f63eb666
adopt denite ver3.0
closes #1918
2019-05-13 15:17:17 +02:00
Christian Brabandt
9a1acf144f
async: Correctly reset dirty flag 2019-05-08 17:22:34 +02:00
Christian Brabandt
79f91649b6
branch: Check untracked and dirty only wehn the fugitive/lawrencium plugins are installed 2019-05-08 13:57:25 +02:00
Christian Brabandt
1b41629214
async: do not show dirty sign for error messages
closes #1915
2019-05-08 13:51:50 +02:00
Christian Brabandt
cd2884abf1
bookmark: do not error out, if the plugin isn't installed
fixes #1912
2019-05-03 12:37:17 +02:00
Bjoern Petri
f1529ce051 vim-bookmark extension 2019-05-03 10:44:09 +02:00
Christian Brabandt
a26a460698
branch: configure what additional checks to run
Allow to customize, whether to check the untracked status of a file or
whether the current repository is clean.

fixes #1910
2019-05-02 08:14:57 +02:00
Christian Brabandt
cc8f47e248
async: fix small problems with dirty jobs 2019-05-02 07:57:10 +02:00
Christian Brabandt
2db882e9b8
async: check dictionary keys before trying to access them 2019-05-01 07:45:06 +02:00
Christian Brabandt
8169aa25af
init: make sure the dirty symbol is defined
references #1907
2019-04-30 17:36:31 +02:00
Christian Brabandt
7469672a46
extensions: Allow customization of filetypes
Define the variable :let g:airline_filetype_overrides to allow for
specific customization how a specific filetype will be displayed.

For e.g. a German display, you can use: >

    :let g:airline_filetype_overrides = {'help': ['Hilfe', ':%f']}
<

This defines how section a and b will look like for a window with that
specific filetype.

Closes #1888
2019-04-30 17:28:51 +02:00
Christian Brabandt
170b6d4c26
extensions: sort filetype_overrides 2019-04-30 16:54:48 +02:00
Christian Brabandt
d1e82c71a3
branch: check existence of dirty key before accessing it
closes #1907
2019-04-30 16:33:05 +02:00
Christian Brabandt
28ed36a9ec
whitespace: fix small problems from conflicts test 2019-04-26 22:08:26 +02:00
Christian Brabandt
538326ceac
whitespace: Also check for Git conflict markers 2019-04-26 14:38:13 +02:00
Christian Brabandt
a753422549
main: Make :AirlineRefresh! skip recrecrating highlighting groups
When `g:skip_empty_sections` is set, `:AirlineRefresh` can be called
very often and cause slow down, because it forcefully re-creates the
highlighting groups. This is mostly not needed for the redraw to happen,
therefore, add the `<bang>` attribute to the command, making it skip to
re-create the highlighting groups and have all extensions that rely on a
forced update use the `!` form.

Should be much fast then.

fixes #1908
2019-04-26 10:16:40 +02:00
Christian Brabandt
fdd75df927
async: cleanup logic for nvim/vim8/vim7 2019-04-25 15:07:12 +02:00
Christian Brabandt
6b213e1071
branch: make it work with vim74
closes #1907
2019-04-25 14:43:56 +02:00
Christian Brabandt
9c1486522a
branch: ignore submodules for git when determing clean state 2019-04-25 08:47:05 +02:00
Christian Brabandt
11cd15d218
async: fnameescape filename
A buffer name wich special characters such as Command-T [Files] will
cause E94 when trying to call setbufvar() on it. That is because the
'[]' is special in buffer names. Therefore, fnameescape the buffer name.

This should prevent 'E94: No matching buffer for
/home/louis/git/minivimrc/Command-T [Files]' errors.

closes #1906
2019-04-25 07:41:56 +02:00
Christian Brabandt
1297773a26
branch: skip untracked files for clean state 2019-04-25 07:35:41 +02:00
Christian Brabandt
a8b0c5f760
branch: skip for non-empty &buftype buffers 2019-04-25 07:32:13 +02:00
Christian Brabandt
ffd8c406ab
branch: Make the branch extension available with 80 char wide windows 2019-04-24 16:12:54 +02:00
Christian Brabandt
9f193de600
branch: Remove spurious dirty var 2019-04-24 15:51:43 +02:00
Christian Brabandt
28bebd35ea
fugitiveline: use correct fugitive functions 2019-04-24 15:48:16 +02:00
Christian Brabandt
3ac318bfd3
fugitive: replace old buffer().commit() function by new global function
as requested by the exception thrown:
fugitive: A third-party plugin or vimrc is calling
fugitive#buffer().commit() which has been removed. Replace it with
matchstr(FugitiveParse()[0], '^\x\+')
2019-04-24 15:29:51 +02:00
Christian Brabandt
9112675ad8
branch: display dirty state
If the repository is considered dirty, do display the
g:airline_symbols.dirty symbol right after the branch name.
2019-04-24 15:16:57 +02:00
Christian Brabandt
a8c96d7c07
async: Move function definition so it is valid for nvim 2019-04-24 13:27:25 +02:00
Christian Brabandt
941341d085
branch: simplify async logic a bit 2019-04-24 13:25:31 +02:00
Christian Brabandt
ead2cd63bb
term: only strip first letter from name, if it starts with '!' 2019-04-18 15:52:54 +02:00
Christian Brabandt
6acb234a12
tabline: Use separate hi group for label on right
if the same highlighting group is used on the left and right for the
label, the `airline_tablabel_to_airline_tabmod` will be overwritten on
the right side, causing the fg/bg colors to be wrong, because on the
right side they have to be the opposite of the left side.

So use a separate highlighting group for the tablabel on the right.

closes #1902
2019-04-17 09:04:56 +02:00
Carlo Lobrano
ebb8f0c2b1 Add formatter for short paths
Add new formatter that shows the file path up to the first parent directory
2019-04-10 22:17:43 +02:00
Shayne Holmes
979e04a6ec Search for wordcount formatters with extension
Autoload expects the autoload scripts to have the '.vim' extension.

Fixes #1986.
2019-04-09 11:52:40 -07:00
Christian Brabandt
148eb6bb28
Allow to switch to a random theme
You can now specify the special theme name `random` and vim-airline will
load a random theme from the ones installed. This works from either your
.vimrc as well as when calling `:AirlineTheme` command directly.

closes vim-airline/vim-airline-themes#170
2019-03-26 21:03:13 +01:00
Christian Brabandt
a6fb6d9da0
Extensions: indicate, if an extension is external
Show in :AirlineExtensions if the extension comes bundled with airline
or from an external source.

closes #1890
2019-03-26 08:41:36 +01:00
Christian Brabandt
1fb184305b
fugitiveline: simplify modify logic
The 'autochdir' option could be toggled on later in a session.
So do not set the has_autochdir flag once the file is read, but evaluate
it every time the corresponding function is called.

While at it, get rid of the s:fmod variable. Instead let a helper
function return the correct modifier flags depending on the value of the
'autochdir' option.
2019-03-25 12:34:09 +01:00
Christian Brabandt
c8a36e14e9
Updated Copyright Statements 2019-03-25 12:29:47 +01:00
Christian Brabandt
45205aa4a3
wordcount: expose filetype list to global scope
allows better configuration of filetypes to be wordcounted.

fixes #1887
2019-03-19 08:28:51 +01:00
Christian Brabandt
b84e548522
Make displaying the tab count optional
Set the g:airline#extensions#tabline#show_tab_count to zero to disable.

fixes complaints at #1882
2019-03-16 09:32:35 +01:00
Christian Brabandt
6ab14bf474
tabline: add consistent tab label to the end
closes #1882
closes #1883
2019-03-08 14:05:38 +01:00
Christian Brabandt
1c3ae6077a
Merge pull request #1879 from gmolau/Fix-syntastic-formatting
Fix the formatting of syntastic error messages
2019-02-22 07:49:52 +01:00
Georg Molau
395fccfda7 Fix the formatting of syntastic error messages
The magic flags were in the wrong order, %e is the number of errors, it
should go in the parentheses after the # symbol. %fe is the line number
of the first error. Same for the warnings.
2019-02-22 00:53:41 +01:00
Max Nordlund gmail
61ca196d73
Move formatting of branch name into get_head
This allows for advanced customization where the shortening of the
branch name is up to the caller, unlike before.

This change is observable from the outside, and as such can be
dangerous. But AFAIK it does not change the default behavior.
2019-02-21 11:59:04 +01:00
Max Nordlund gmail
5f769dbed9
Expose get_hunks for advanced customization 2019-02-21 11:59:04 +01:00
Max Nordlund gmail
45ff435378
Honor minwidth for hunks and branch parts
This removes the hardcoded minwidth limits for both the `hunks` and
`branch` parts. It replaces these with safe accesses to the `minwidth`
setting as done by `airline#parts#define_minwidth`.
2019-02-20 12:36:40 +01:00
petobens
cc7b3c1636 Fix denite extension 2019-02-11 09:22:43 -03:00
Christian Brabandt
1471330825
Adjust buffer numbers for buf_idx_mode v2 slightly
fixes #1823
2019-02-08 07:55:35 +01:00
Christian Brabandt
05572482b8
tabline: add forgotten changes from commit cd1d8c2a96
I accidentally missed including some more changes for buffer_idx_mode=2.
So add those files now.
2019-02-07 08:17:33 +01:00
Christian Brabandt
cd1d8c2a96
Introduce buffer_idx_mode v2
fixes #1823
2019-02-07 08:11:47 +01:00
Christian Brabandt
624d2f1438
tabline: AirlineSelectTab still wrong sometimes
Partly revert commit 105e9daaf7
and fix #1857 another way, by making sure, that buffers are not taking
away from the s:current_visible_buffers list.

Fixes #1857
Fixes #1872
2019-02-06 22:42:10 +01:00