Commit Graph

2660 Commits

Author SHA1 Message Date
Gauravsingh Sisodia
8e36c0a8ed
main: ignore popup windows for inactive windows
When openning popup (vim) or floating (neovim) windows,
do not consider those windows for disabled windows. That is, leave the
main window in activate state instead of marking it disabled

closes: #2387
2021-12-05 19:05:15 +01:00
Christian Brabandt
de73a21903
tabline: Give error message, if switching buffers is not possible
When using Neovim and switching to another buffer with the mouse and the
current buffer is modified, Vim refuses to switch buffers rightfully,
if the user has not set 'hidden' or 'autowrite' (because it is going to
unload the buffer from memory).

So catch this case and let the user know.

Note: :b! would be another possibility, but I do not prefer using this
attribute, because it is not clear what happens to the current buffer. I
think it is made hidden, but I prefer to be explicit here

closes #2478
2021-12-05 18:52:27 +01:00
Christian Brabandt
841a355196
Merge pull request #2472 from indelog/indelog_vim9lsp
Add extension for yegappan/lsp
2021-11-26 10:31:26 +01:00
Christian Brabandt
65a4d4dd43
Merge pull request #2464 from TamaMcGlinn/master
Add support for flog with git status summary
2021-11-26 10:27:33 +01:00
Indelog
8df0f3db4b Add extention for yegappan/lsp
Show errors and warnigs with yegappans/lsp plugin.
2021-11-26 10:12:11 +01:00
Tama McGlinn
2ed11e9536 Add support for flog with git status summary 2021-11-25 18:09:40 -05:00
Christian Brabandt
f678b4c53d
Merge pull request #2471 from capt8bit/taglist_earlier_check
taglist: load taglist variants only once
2021-11-25 17:30:02 +01:00
Michael Monsivais
6716572b30 taglist: load taglist variants only once
Because Tlist_Get_Filenames() only exists within yegappan/taglist,
TlistUpdate was being envoked on every call when using other taglist
versions.(Like vim-scripts/taglist.) This caused visual artifacts and
slowdowns.

We now check for a function from both taglist variants to see if either
one has been loaded.
2021-11-19 10:15:15 -07:00
Christian Brabandt
4b96f58902
Merge pull request #2462 from KSR-Yasuda/feature/CustomSpellCheckCommand
Custom Spell Check Command Support
2021-11-12 13:06:26 +01:00
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
yasuda
646dd0a1c2 Custom spell check command support
- Add an option `g:airline_spell_check_command`
2021-11-12 11:45:58 +09: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