Commit Graph

2600 Commits

Author SHA1 Message Date
Indelog ec761c2adf taglist: correctly check for right taglist plugin
Avoid the error `Unknown function: taglist#Tlist_Get_Tagname_By_Line`
when using the old tag tlist plugin in a different way.

this means, we have to revert 5841039679
since exists() does not handle autoloaded functions correctly.

We can only check it, after we have used the taglist plugin, so that the
autoloading has happened. That means, move the exists() call after the
`:TListUpdate` call which will correctly autoload taglist and then
exists() can check for the existence of the
`taglist#Tlist_Get_Tagname_By_Line()` function correctly.

closes: #2463
2021-11-12 13:04:45 +01:00
Christian Brabandt 5841039679 taglist: check that correct function exists
So 47bf6b1716 added support for
yegappan/taglist plugin, but unfortunately the old (deprecated)
vim-scripts/taglist.vim repo still exists and this one throws an error
when trying to access taglist#Tlist_Get_Tagname_By_Line

So check, that this function is defined before trying to load the
extension
2021-11-12 09:32:50 +01:00
Christian Brabandt 6e5439126f wordcount: allow to disable vimtex wordcount()
While Commit e542f5e introduced a nice little feature for TeX files to
accurately count words, this unfortunately has the drawback of being
possibly slow, especially since the statusline is often re-evaluated.

Therefore disable this feature by default. You can enable it using:

    :let g:airline#extensions#vimtex#wordcount = 1

fixes #2461
2021-11-11 22:51:02 +01:00
Christian Brabandt 47bf6b1716 Merge pull request #2460 from indelog/indelog_taglist
Add extention to support yegappan/taglist
2021-11-11 15:06:32 +01:00
Indelog d134ae8c2f Add extention to support yegappan/taglist 2021-11-11 14:26:49 +01:00
Christian Brabandt 70904d7070 Merge pull request #2458 from fritzlolpro/patch-1
Allow user to hide CoC status in the section C
2021-11-10 11:24:50 +01:00
Dood of Distinction e542f5e9d0 Modifies the wordcount to use the vimtex wordcount function when editing TeX files and the vimtex plugin is loaded.
With help from Karl Lervag's suggestion on how to reliably tell when the
above mentioned conditions are the case for the current buffer

Checked to work with other filetypes that use the wordcount in
vim-airline, and these seem to work as before.

Also checked that if two of these filetypes (one TeX and the other
another type, such as markdown) the two coexist peacefully, with TeX
using Karl's wordcount function, and the other using the (I assume)
native wordcount?

Fixed comment wording
2021-11-09 22:02:15 +01:00
Fedor 69726073ca Add documentation 2021-11-03 23:05:05 +03:00
Christian Brabandt 17f7dff748 Merge pull request #2457 from ytian81/remove_hunks_dependency_on_branch
Remove gitgutter hunks summary dependency on branch
2021-11-03 20:50:19 +01:00
Fedor f0ee8f193e Allow user to hide CoC status in the section C
Hello.
This PR should solve my pain as CoC user, that CoC status takes too much space in the C section, right after the file path. 
It looks like a waste of space on splitscreen or a small screen.

So I added an option to set
g:airline#extensions#coc#show_coc_status = 0
and the status will be hidden. 

By default it works like usual.
2021-11-03 15:27:47 +03:00
Yang Tian 0dd6f5e711 remove gitgutter dependecy on branch 2021-11-03 00:24:08 -07:00
IK ddaf69804a Merge pull request #2446 from vim-airline/fix-assertion-roulette
[fix] assertion roulette in test
2021-11-03 16:14:50 +09:00
Christian Brabandt 86a8ac0f96 Merge pull request #2451 from barn/master
Add vim-rufo extension support to section z.
2021-11-02 21:54:24 +01:00
Bea Hughes 6800c9ea7f Add vim-rufo extension support to section z.
Displays whether you have the ruby formatter enabled or not for the
session you are in.

Enable with:
let g:airline#extensions#rufo#enabled = 1

Configure with:
let g:airline#extensions#rufo#symbol = '💎'
2021-11-01 10:36:33 -07:00
kazukazuinaina 2b260aabfe [fix] extensions_default's assertion rulette 2021-10-27 01:11:20 +09:00
kazukazuinaina c9820b0378 [fix] assertion roulette 2021-10-10 19:52:02 +09:00
Christian Brabandt 26f922753a coc-extension: remove dead code
vim-airline does not use actually use the `g:coc_stl_format` variable
and it also doesn't seem to be used by coc itself. So let's just remove
this code.

closes #2437
2021-09-21 08:43:30 +02:00
Christian Brabandt 0a7e1bc475 style: Remove colon 2021-09-21 08:43:30 +02:00
Christian Brabandt 2e29ab9656 Merge pull request #2424 from Freed-Wu/Freed-Wu-patch-1
Fix bug of g:airline_symbols.spell == ''
2021-09-10 10:03:58 +02:00
wzy 78cb6e6621 Fix bug of g:airline_symbols.spell == '' 2021-08-16 14:41:49 +08:00
Christian Brabandt 0de4c9df21 Merge pull request #2419 from Freed-Wu/fix-typo
Fix #2418
2021-08-11 19:15:58 +02:00
Freed-Wu c39ec8ef35 Fix #2418 2021-08-11 00:38:46 +08:00
Christian Brabandt 2259e5c93e Merge pull request #2416 from zeertzjq/gina-initialized
Don't show "gina" in diff buffers if `b:gina_initialized` is not set
2021-08-09 20:59:40 +02:00
Christian Brabandt e519b53cab Merge pull request #2417 from LOTehan/master
Fix "Cannot allocate color none"
2021-08-09 20:59:12 +02:00
LOTehan cc0d39b528 color name is case-sensitive in the latest gvim 2021-08-08 02:18:04 +08:00
zeertzjq 969c13c716 Don't show "gina" in diff buffers if b:gina_initialized is not set 2021-08-07 19:28:15 +08:00
Christian Brabandt 0cfd829c92 Merge pull request #2414 from vEnhance/master
Allow overriding trailing ws regexp per buffer
2021-08-04 08:11:53 +02:00
Evan Chen 0f3feca572 Allow overriding trailing ws regexp per buffer
For example, in a github repository, you might want to allow trailing
double spaces in a file, but not elsewhere
2021-08-03 21:35:22 -07:00
IK b861f9d248 Merge pull request #2404 from vim-airline/fix-2388-issue
[fix] issue #2338
2021-07-19 02:41:29 +09:00
kazukazuinaina ec4bbabe4a [fix] issue #2338
add check airline_stl_path_style's flag and pathshortln api
2021-07-12 02:26:52 +09:00
IK 4807a211cd Merge pull request #2403 from vim-airline/add-new-vim-version-ci
[add] 8.2.2000 in ci
2021-07-12 01:51:29 +09:00
kazukazuinaina 84a04bbd5b [add] 8.2.2000 in ci 2021-07-12 00:41:45 +09:00
Christian Brabandt a94d8034c3 Merge pull request #2402 from vim-airline/add-patch-1
[refactor] use Ternary operator
2021-07-06 08:49:54 +02:00
kazukazuinaina 9b113a02f5 [refactor] use Ternary operator 2021-07-06 02:37:52 +09:00
Christian Brabandt 49cdcb7b3e vim9: Needs at least version 8.2.22844 2021-06-07 13:44:53 +02:00
Christian Brabandt 82b1b2e876 Merge pull request #2394 from adriantrunzo/master
Correct line number for coc.nvim warnings.
2021-06-04 08:45:17 +02:00
Adrian Trunzo fdda58861b Correct line number for coc.nvim warnings.
- The line number index is 0 for errors, 1 for warnings.
2021-06-03 14:23:44 -06:00
Christian Brabandt a8b3c254d0 Merge pull request #2391 from aostruszka/master
Change event for tabline autoshow
2021-05-27 18:53:33 +02:00
Andrzej Ostruszka 3882146c41 Change event for tabline autoshow
Use TabNew/TabClosed for the "autoshow" event when tabline is used only
for tabs (show_buffers==0).  This fixes case of visible tabline when
tab_min_count == 2 and user executes ':tabonly' command - the tabline
should disappear but there is no TabEnter event triggered in this case.

Closes #2389
2021-05-27 08:29:30 +00:00
Christian Brabandt b6f6cc9312 autoload: fix error with vim74 2021-05-26 13:26:47 +02:00
Aaron Adams 98aea41dc2 Warn if a function is already registered for inactive statusline
closes #2388
2021-05-26 13:09:04 +02:00
Christian Brabandt 05bd105cab Merge pull request #2385 from ReubenM/master
Completely customizable linenr, maxlinenr, colnr symbols and strings
2021-05-26 08:02:03 +02:00
Christian Brabandt 73025ea504 Merge pull request #2390 from ls4154/master
scrollbar: fix first line overwrite
2021-05-26 08:01:43 +02:00
Youngjae Lee affe12b7e7 scrollbar: fix first line overwrite 2021-05-26 10:48:36 +09:00
Christian Brabandt 4a64fbfc4b scrollbar: disable by default
as per feedback from reddit
2021-05-21 16:10:51 +02:00
ReubenM ef232cfee1 Update docs 2021-05-19 15:43:23 -05:00
Christian Brabandt 03ec880101 Merge pull request #2386 from vim-airline/add_winwidth_test
[add] winwidth's test
2021-05-18 08:13:00 +02:00
kazukazuinaina 51c79f61f4 [add] winwidth's test 2021-05-14 02:25:14 +09:00
ReubenM 1f94ec1556 Make everything in linenr, maxlinenr, and colnr completely configureable, including spaces and colons. The only thing hard wired anymore is the actual numbers. 2021-05-09 22:12:37 -05:00
Christian Brabandt ab4962b838 tabline: remove commented out functions, that are not possible in Vim9 2021-05-09 09:20:06 +02:00